I have the following issue: I am using the latest ionic version with ionic popup support in my app. When I test the application in my browser on my computer everything works fine. A popup is shown and when I click a button, the popup is removed. And, (this is important) it is no longer part of the DOM tree.
But, when I build the application using phonegap build, I have a strange behavior: When I click a button in the ionic popup window, the popup is no longer displayed (thats correct), but it is not removed from the DOM tree (as I have seen in phonegap debug mode). Thus, everytime I click on a button, the DOM tree increases and increases. Furthermore, obviously the popup is still present, because: At the position the popup was shown I can no longer click on any button. At the area around the privious popup everything works as usual. But in the area of the popup nothing reacts. Sometimes even the popup flickers and I can see it for a few milliseconds.
Any idea what is going wrong here?