Steps to reproduce:
(before #2255, revert that PR for repro or use code in post below)
- open https://dev.agiletoolkit.org/demos/interactive/tabs.php
- click "Modal popup" tab
- click "Load Lorem" button
- click on the dimmer background to close the modal
- click "Static Tab" tab
- click "Modal popup" tab again
- click "Load Lorem" button
- click on the dimmer background to close the modal
- repeat step 7 - and notice, the modal is empty! (the modal load AJAX is not even sent)