bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

bug(modal) - modal scope is not destroyed on close

Open Halama opened this issue 12 years ago • 24 comments

Hi, since version 0.10.0 modal $scope isn't destroy on modal close. There are examples of this behaviour, please open browser console while testing.

Example using 0.10.0 (There is a bug): http://plnkr.co/edit/luXIk8fRD3RaRYvFXUCA?p=preview

Example using 0.9.0 (Works fine): http://plnkr.co/edit/qLAcaEcGryXOhBXoKp6v?p=preview

thanks

Halama avatar Jan 22 '14 15:01 Halama

You're right. I need to research more on it. @pkozlowski-opensource thoughts?

Foxandxss avatar Jan 22 '14 15:01 Foxandxss

yup, this is a bug, side-effect of supporting close animations. Pretty easy fix, tests are not so obvious to write :-)

pkozlowski-opensource avatar Jan 22 '14 18:01 pkozlowski-opensource

Interesting, I must've introduced it. Need to account for this when using nganimate.

chrisirhc avatar Jan 22 '14 18:01 chrisirhc

@chrisirhc I will push a quick fix in a sec but yes, $animate will be a proper solution

pkozlowski-opensource avatar Jan 22 '14 18:01 pkozlowski-opensource

Cool thanks! Yep I'll look into it.

chrisirhc avatar Jan 22 '14 18:01 chrisirhc

Guys, that's a pretty critical bug. Could you please backport the fix to the 0.10 branch/tag if 0.11 is too far away.

asapach avatar Mar 18 '14 12:03 asapach

~~Is there any news on this for v0.10?~~

Ignore me. Just patched my source for now.

gazsp avatar May 01 '14 10:05 gazsp

Any idea when this will be fixed?

JasonRodman avatar Jun 05 '14 21:06 JasonRodman

I believe it's already fixed in 0.11: http://plnkr.co/edit/iuaRN1L07ojBbqyMyIpx?p=preview

asapach avatar Jun 05 '14 21:06 asapach

I just upgraded to 0.11 and the event still does not fire.

JasonRodman avatar Jun 05 '14 21:06 JasonRodman

For some unexplained reason it just started working. Cant figure out why.

JasonRodman avatar Jun 06 '14 15:06 JasonRodman

Hey Pawel,

I still encounter this issue in both 0.10 and 0.11. Has this been fixed in the latest stable version?

aymericbeaumet avatar Jul 10 '14 14:07 aymericbeaumet

Hey Pawel, me too! any news about this bug?

segevofer avatar Jul 15 '14 08:07 segevofer

Same here, I can still see this bug.

spotlmnop avatar Jul 19 '14 14:07 spotlmnop

I use the 0.11 version, and the event can be triggered. I think this bug has been fixed.

neoblackcap avatar Jul 21 '14 07:07 neoblackcap

Yes, 0.11 fixes this issue. If someone here is working 1.3.0 angular , the only supported version is 1.3.0-beta.10. Else, typeahead does not work. Hope this helps someone.

spotlmnop avatar Aug 08 '14 22:08 spotlmnop

I was having this issue on 0.11, but figured out that I was calling .close() twice.

ribbitfix avatar Aug 13 '14 00:08 ribbitfix

I still experience the issue. Running: angular v1.3.0-beta.11 angular-ui-bootstrap v0.11.0

DmitryEfimenko avatar Aug 22 '14 00:08 DmitryEfimenko

@karianna , let's not be hasty to reopen this. #3308 doesn't explain what's broken and doesn't have a reproduction.

chrisirhc avatar Apr 14 '15 08:04 chrisirhc

@chrisirhc did you find any solution?

citosid avatar May 20 '15 23:05 citosid