Closed orange4glace closed 8 years ago
I'm experiencing this as well. I just updated from beta.10 to beta.12 and now receive this error when clicking "Yes" or "No" to close a modal. Using rc.6 using Vex.
@orange4glace There are 2 different issues.
The issue when you get an error when the modal is dismissed (backdrop click or X close button) is a duplicate of #188 (you opened first but the discussion is held there)
The first issue you describe when resolving the modal is something I'm not able to reproduce, it works fine for me. My guess is that it's related to animations, you either forgot to add the CSS for VEX or removing some elements before animations is done.
Please re-open an issue with more details about your 1st issue.
Tested on both angular2 version rc5 and .rc6 with angular2-modal version beta12
(based on a clean angular2-seed)
With Vex Modal Module (but works well with Bootstrap modal module)
When close is called (error occurs after animation ends):
line that occurs an error
When dismiss is called (error occurs immediately and stop working)
line that occurs an error