-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Remove .modal-open
class after backdrop is hidden
#14570
Conversation
Sure, give me a second, I'll post a screencap. |
The fix is not complete. You should also think of cases when multiple instances are opened at the same time: only when the last dialog is closed, it should remove the .modal-open class. For example I use this for forms inside modals, popping up another modal when error occurs. |
We do not support overlapping modals and state this explicitly in the docs:
|
Yes I know you are currently not supporting it, thats why I need to write workarounds each time I need to use this. And I'm guessing I'm not the only one. I hoped for a future release you could support it, would make life easier. |
Anyway, that issue is broader than just this pull request. We're unlikely to try to add such a feature before v4, and even then it's still quite uncertain. |
Also, you might be interested in nakupanda/bootstrap3-dialog, which we have listed in the "Resources" section of the Expo. |
Thank you hnrch02, nakupanda's bootstrap3-dialog is very good, I'm using it already for everything were I need dialogs, it's a lot easier to use than plain bootstrap. Of course, it has the same scrollbar-shifting issues on "stacked" dialogs because it sits on top of bootstrap's modal (which doesn't support it - as you wrote). Debugging of it showed its related to .modal-open class, so I needed to write workarounds for both. |
f6117e1
to
c4f431d
Compare
…closed Remove `.modal-open` class after backdrop is hidden
Fixes #14274 and #14632.