[Bug Report][3.1.4] Elements with overlays not present in DOM initially attached to wrong overlay containers #16610
Labels
C: VOverlay
VOverlay
T: bug
Functionality that does not work as intended/expected
T: regression
Something that used to work but we broke
Milestone
Environment
Vuetify Version: 3.1.4
Vue Version: 3.3.0-alpha.4
Browsers: Chrome 109.0.0.0
OS: Linux x86_64
Steps to reproduce
Expected Behavior
The v-select's menu is visible. Changing attach target should only affect the v-menu, but not the v-select, which is a completely unrelated component in this code.
Actual Behavior
The overlay belonging to v-select is teleported to the v-menu's overlay. As the v-menu's attach target has
display: none;
, the v-select's list is not shown.Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
Maybe has something to do with this line:
vuetify/packages/vuetify/src/composables/teleport.ts
Line 24 in 8275c89
It seems to always pick the first
.v-overlay-container
in the DOM, but it might not be the desired one. Note that it seems important that the attach target has changed before showing the new element (v-select in this case), otherwise it works as expected.The text was updated successfully, but these errors were encountered: