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
[Bug Report] v-dialog overlay still placed in root when using attach #6425
Comments
Dialog is fine, it's just the overlay. |
@KaelWD But shouldn't the dialog be in the center of the target DOM element? Instead of being in the center of the v-app? |
I agree, this seems broken with 1.5.6. The attach does not seem to work. I expect the dialog and the overlay to be children of the selected element, so the dialog doesn't take over the entire app. For background, I'm trying to overlay a section of the page with a "Loading..." modal similar to the example provided. I have a tabbed interface and I want the rest of the tabs to remain functional while the current tab is busy loading something. Right now, the entire app is overlaid, blocking the tabs from being usable. |
Noticed this as well. Any updates on when this will be fixed? |
Hey there, I agree. IMO, this makes 'attach' quite useless. Any updates on this issue? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I ran into this with the overlay of a It's kind of a backwards workaround, but I got around the issue by creating a separate https://codepen.io/jradicus/pen/yLewOOm That said, I do still feel that this is a bug and the workaround should not be necessary. |
You can also set the position attribute of the dialog on your own. This will do it: |
It would be good if we could directly provide our own class to the |
i ran into the same issue too. With the following code, the dialog can correctly show in the child component
|
Are there any news? It still doesn't work for me.
@jtomeck |
Versions and Environment
Vuetify: 1.5.0
Vue: 2.6.2
Browsers: Chrome 72.0.3626.81
OS: Windows 10
Steps to reproduce
Create a DOM element with a class/id. Create a VDialog and set the attach attribute with the selector. As described here at the 'attach' property: https://vuetifyjs.com/en/components/dialogs#attach
Expected Behavior
VDialog and the overlay have the target DOM element as parent. (this.$el.parentNode)
Actual Behavior
VDialog and overlay have the v-app DOM element as parent. (document.querySelector('[data-app]'))
Reproduction Link
https://codepen.io/Paulsky/pen/GzQZvX
The text was updated successfully, but these errors were encountered: