Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple modals stacking, losing close binding issue. #48

Closed
menacestudio opened this issue Jan 3, 2013 · 5 comments
Closed

Multiple modals stacking, losing close binding issue. #48

menacestudio opened this issue Jan 3, 2013 · 5 comments

Comments

@menacestudio
Copy link

I've encountered an issue where I 'show' a modal through another modal through $(object).modal('show') after you close all the modals all the way that it loses the 'hide' event binding after a few modal instances (show, hide, etc).

My work around right now is to basically use the href on the button to show the second modal as doing it programmatically would create the issue mentioned above.

I hope this gets fixed in the future, thanks guys!

p.s. if for some reason, there's a better programmatic workaround, let me know. Thanks.

@jschr
Copy link
Owner

jschr commented Jan 7, 2013

Are you able to create a jsFiddle showing the issue? Not sure what would be causing this off the top of my head.

Thanks

@menacestudio
Copy link
Author

I'll see if I can recreate it using jsFiddle sometime this week. I have to add that I'm also using Backbone JS to render the view inside the modal (which I don't see as an issue).

@jschr
Copy link
Owner

jschr commented Jan 23, 2013

Any luck on recreating this?

@menacestudio
Copy link
Author

Darn it. Can't replicate anymore -- http://jsfiddle.net/the_menace/9uYN5/.

@menacestudio
Copy link
Author

I think the issue might be with Backbone not properly disposing the view which is unrelated to the bootstrap-modal. My current app works as is using the declarative modal call to the modal so no need to worry about this anymore. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants