Closed g00fy- closed 3 years ago
Please see your example when native v-dialog not within v-navigation-drawer https://codesandbox.io/s/vuetify-2-dialog-example-forked-eykz7?file=/src/App.vue
It's not a bug, its expected behavior, because in usual case v-navigation-drawer has click-outside directive and always react on this.
In your case v-dialog is child of v-navigation-drawer, and when you click on overlay - this is not click-ouside, this is click on it child.
Therefore, if you want this behavior - please use native v-dialog within slot v-navigation-drawer like you did
@yariksav would it be possible to extend vuetify-dialog
to allow passing additional parentElement
as an option to prevent this behavior ?
When a dialog is opened from a drawer clicking anywhere (even on the overlay) triggers the drawer to be hidden. The issue is not reproducable when creating manual
<v-dialog>
component that is child of the drawerExample issue: https://codesandbox.io/s/vuetify-2-dialog-example-forked-ffv95?file=/src/App.vue
Not sure if this is an issue with vuedl or vuetify-dialog