-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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][3.6.9] VOverlay unable to locate target undefined #20001
[Bug Report][3.6.9] VOverlay unable to locate target undefined #20001
Comments
I'll add the error text so others won't duplicate the issue:
|
Seeing a similar issue in unit tests of components that include v-dialogs , where it warns |
In our app, this issue prevents menus from working for a period of time, after which they start to work again. I didn't find any particular rhyme or reason to when it would start working again, but we were seeing the same error as posted above. Not to add any pressure or anything, but just to help scope the impact: for us this will prevent any further upgrades to Vuetify until the bug is fixed. |
I have errors in v-menu, when multiple v-menu could attach to a component. v-menus cannot show anymore. <v-menu
:model-value="isShowSubFunctionMenu"
:location="tbLocation"
:disabled="isMenuDisabled"
:close-on-click="false"
:close-on-content-click="false"
persistent
no-click-animation
max-width="46"
offset="10"
transition="fade-transition"
z-index="22"
content-class="overflow-hidden elevation-4 fixedMenu"
contained
attach="#mainNav"
scroll-strategy="reposition"
>
<template v-slot:activator="{ props }">
...
</template>
<div>
...
</div>
</v-meun> The browser console show this:
Which is from
|
Attach is broken with See this Vuetify Snips for reproduction
|
This also happens to the Misc > Advanced Showcase on the Vuetify webpage (Playground) |
Hey @johnleider |
Because it hasn't been released yet. |
Ok, I'm sorry, I didn't know the issue could be closed prior to release :) |
I was initially confused by this comment, but I think @johnleider is saying "this fix hasn't been released yet" not "v3.6.10 hasn't been released yet. |
Tickets get closed when they are completed which is usually when a commit for that fixed the issue has been merged into e.g. The fix was committed to master ~20hrs ago, and will be available in the next patch(v3.6.11). v3.6.10 was released last week v3.6.11 has not been released yet thus the fix has not been released yet. |
If you click on the commit that completed this fix, you'll see that its only in the |
sorry, but I don't think it's quite right in 3.6.10-master.2024-06-27 'a' || 'b' || (true) ? true : false = true but should be 'a' VOverlay: useTeleport(computed(() => props.attach || props.contained || ( potentialShadowDomRoot.value instanceof ShadowRoot ? potentialShadowDomRoot.value ?? true : false ) )) |
attachand contained are booleans though. 27b4b1e#diff-797e0d87fcc4e46ffbe545df7707d4565185aaa039c2f04eaf74a2539b3fc5baR159 Whether it's attach, contained, or potentialShadowDomRoot, the condition, if true, will attempt to use the value of the shadowDom OR default to true if it's not available. |
sorry everything is fine! I was unable to reproduce my problem on the playground. the error is on my side |
If attach or contained are set it uses potentialShadowDomRoot even if that isn't a ShadowRoot. |
Environment
Vuetify Version: 3.6.9
Last working version: 3.6.8
Vue Version: 3.4.27
Browsers: Chrome 125.0.0.0
OS: Windows 10
Steps to reproduce
Expected Behavior
Open overlay
Actual Behavior
Throw error with message: Unable to locate target undefined
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
It appears to be related to: #19947
The text was updated successfully, but these errors were encountered: