[Bug Report] Dialog won't behave as modal when hide-overlay prop is true
See original GitHub issueEnvironment
Vuetify Version: 2.0.10 Vue Version: 2.6.10 Browsers: Chrome 76.0.3809.100 OS: Windows 10
Steps to reproduce
Set both the persistent
and hide-overlay
props to true on a Dialog
Expected Behavior
The Dialog will persist even when the user clicks outside of it.
Actual Behavior
The Dialog gets dismissed when the user clicks outside of it.
Reproduction Link
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Bootstrap modal appearing under background - Stack Overflow
In my case setting the div with the modal-dialog class to a z-index of 1060 popped it in front of the overlay. If...
Read more >Bug #903302 “Dialog windows are not turning modal anyway”
When I create any GtkDialog in my application, i set these two methods: set_transient_for(parent_window) and set_modal(true), so I can block ...
Read more >ImageJ User Guide
Detailed instructions on how to submit a bug report are found at http://imagej.nih.gov/ij/docs/faqs.html#bug.
Read more >Release Notes - Bforartists
You can report bugs in the Github tracker: ... #3332 UV Editor Sidebar in Image tab – Udim Tile creation dialog – align...
Read more >Toggling an Overlay - Brightcove Player Sample
... Player Informational Properties · Sample: Live Custom Error Message ... true; myPlayer.removeClass("hide-overlay"); } }); }); ... Close Modal Dialog.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the problem is in the following bit : https://github.com/vuetifyjs/vuetify/blob/51a0336e23c6e07d5bced84caa4b0c686f28a672/packages/vuetify/src/components/VDialog/VDialog.ts#L169-L179
It probably broke on v2.0.8 (https://github.com/vuetifyjs/vuetify/commit/652ba11) when
this.overlay
was added as a requirement for this function.Here’s a workaround for people wanting to use bottom sheet with persist and hide-overlay in the meantime… We extend VBottomSheet with a new control that operates correctly. The export as any makes it work with vue-property-decorator.