-
Notifications
You must be signed in to change notification settings - Fork 215
Modal Does't remove from DOM after if click on overlay . #823
Comments
Strange.. |
I've also noticed this issue. In addition to this, Updated: |
Yeah, |
I suppose the issue is not a bug, but it was originally designed like that, however, I cannot prove it. I personally prefer when the modal is added into DOM then removed from DOM after close. If you look at foundation.modal section you will find a kind of interesting example. It looks like the purpose of the factory is to create the modal when controller is initialised, then access the modal as a regular object. That's just my thoughts. |
I have already created Service for open & close model. yeah already gone through the documents, but its not work, means Model element not removed from DOM After close it |
The modal overlay close triggers the By the way, this repo has been dead for awhile and is now being maintained in https://github.com/base-apps/angular-base-apps. If you want, you can create a PR to introduce the concept of |
Thanks for providing the requested information :) |
@cisdev739 I added a |
Right now, if I open the modal once, then click on its overlay, and open it again. then I have twice the element in the DOM.
I want to completely removed old model from DOM please help me to resolve that issue.
Here a code example :-
URL : http://foundation.zurb.com/apps/docs/#!/modal
modal.activate();
Some screen shots
First time loaded
after click on overlay , its only hidden not destroyed form DOM
2nd time open modal
The text was updated successfully, but these errors were encountered: