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.

[Bug Report] Dialog won't behave as modal when hide-overlay prop is true

See original GitHub issue

Environment

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

https://codepen.io/wallslide/pen/BaBpZbR

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
FelixINXcommented, Sep 3, 2019

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.

1reaction
ErikMikkelsoncommented, Oct 7, 2019

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.

import { VBottomSheet } from "vuetify/lib";

export default {
    extends: VBottomSheet,

    methods: {
        closeConditional(_e: Event) {
            return false;
        }
    }
} as any;
Read more comments on GitHub >

github_iconTop 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 >

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