question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Modal] Modal breaks when repeatedly opened and closed

See original GitHub issue

Steps

Check out this fiddle that opens modalOne, then immediately closes modalOne and opens modalTwo. What is left is a translucent layer on top of the whole page making it impossible to use.

Here is a video of it: ezgif-5-10cefeac6f

Expected Output

modalOne opens, then modalOne closes, then modalTwo opens.

Version

2.3.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
peterzhu2118commented, May 14, 2018

Ah yes that’s a good suggestion! Thanks so much!

0reactions
hammy2899commented, May 14, 2018

Could you not simply add a flag? https://jsfiddle.net/Lakect6m/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Twitter Bootstrap modal opening/closing causes fixed header ...
This is a solution that fits the cause of the behaviour the best. When modal is opened, .modal-open class is added to the...
Read more >
Modal progress dialog stays open permanently, even when ...
Modal progress dialog stays open permanently, even when IDE is responsive ('Preparing Solution', 'Creating Project', Edit and Continue, etc).
Read more >
Modal & Nonmodal Dialogs: When (& When Not) to Use Them
When missing information prevents the system from continuing a user-initiated process, a modal dialog can prompt the user for that information.
Read more >
Video keeps playing when modal is closed - YOOtheme Support
Video keeps playing when modal is closed. Hello,. This seems to be an issue for a lot of people and i havent found...
Read more >
Modal · Bootstrap v5.0
Modals are built with HTML, CSS, and JavaScript. · Clicking on the modal “backdrop” will automatically close the modal. · Bootstrap only supports...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found