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

Rapidly reopening a modal after close causes the background to duplicate #5003

Closed
randrews opened this issue Sep 5, 2012 · 5 comments
Closed
Labels

Comments

@randrews
Copy link

randrews commented Sep 5, 2012

On this page, click "Launch demo modal", then run this JS in the console:

$("#myModal").modal("hide").modal("show")

The dialog should hide and show again, which it does, but the background overlay also turns completely black and opaque, which it shouldn't.

JsFiddle link: http://jsfiddle.net/fgVv3/12/

@rwilcox
Copy link

rwilcox commented Sep 6, 2012

I believe this is a duplicate of Issue #3902

The last comment there is insightful: the hide and show operations are async, so when your show gets called you'll actually (probably) be in the middle of showing the dialog.

@randrews
Copy link
Author

randrews commented Sep 6, 2012

Yeah, I know what causes it, is there a workaround?

@andrewdeandrade
Copy link

Hey @randrews,

Thanks for opening this issue! Unfortunately, it looks like it fails to pass the criteria neccessary for submitting to bootstrap. The following things are currently failing:

  • should include a jsfiddle/jsbin illustrating the problem if tagged with js but not a feature

For a full list of issue filing guidelines, please refer to the bootstrap issue filing guidelines.

thanks!

@randrews
Copy link
Author

Here you go: http://jsfiddle.net/fgVv3/12/

@fat
Copy link
Member

fat commented Feb 8, 2013

closing as a duplicate

@fat fat closed this as completed Feb 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants