Comments (6)
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.
from vuetify.
I'll add the error text so others won't duplicate the issue:
Failed to execute 'appendChild' on 'Node': Only one element on document allowed.
from vuetify.
Seeing a similar issue in unit tests of components that include v-dialogs , where it warns [Vue warn]: Unable to locate target undefined at <VOverlay ref=Ref< <ref *1> {...
and then unit tests that open dialogs can't find the components inside the dialog (v-dialog is attach=true in the context of unit tests to allow the tests to find components which worked in vuetify 3.6.8 -- in the app itself the v-dialog is attach=false, and appears to work correctly fwiw)
from vuetify.
+1
VMenu 'attach' prop affected by this as well. Console error shows but it does seem to still work. https://play.vuetifyjs.com/#eNq1UUtuwjAQvcrIm4KEE4l20yggVe22JyAsjGOEhbEtZ5KCoty9EyeFhH1Xmc+b94l3LauCTD+8T5pasYzlqC7eCFTbwgLkpW5AGlFVm4KhuiKXyqIKBYtrAjT8omwNAlHIEzivLHeWn1yjwggh0B8nNLwyDjMhUTcCXSDWFnxwvoLuzjnyHtCCdCaCfNAXEW4FI4aDtmUc0RXdwBcVpfuxkKfx6CGbTrLchw03usK5VD/hmtBEf4yCi75bAUmp65I+0PckB9lZ3WgfFzPHcyKOGo3atm08TGIHXddbfMZMnEy3kxgzy33b//LhfVJ6IKqeouaVDNoPF+rqXUAo1VHUBqEdWEqBIoPFEjZbWIwzGEJmsHtYaiGazODl02h5hm/1At3qP/ewniL2Y9UtY9H1Ue/hWLdir8lbsn5nK1sbs/8Fl+XdMw==
This bit here seems to be a change that brought shadowdom stuff in. Not sure what that's about, but this looks to be what started affecting this.
v3.6.4...v3.6.9#diff-797e0d87fcc4e46ffbe545df7707d4565185aaa039c2f04eaf74a2539b3fc5baR159
packages/vuetify/src/components/VOverlay/VOverlay.tsx:159
about:srcdoc:168 DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed.
at https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify-labs.esm.js:10619:21
at ReactiveEffect.fn (
from vuetify.
I have errors in v-menu, when multiple v-menu could attach to a component. v-menus cannot show anymore.
Was working before 3.6.8.
<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:
Uncaught (in promise) DOMException: Node.appendChild: Cannot have more than one Element child of a Document
Which is from teleport.ts
line 29 targetElement.appendChild(container)
- Operating System: Windows_NT
- Node Version: v18.19.0
- Nuxt Version: 3.12.2
- CLI Version: 3.12.0
- Nitro Version: 2.9.6
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, vite, app, css, modules, i18n, runtimeConfig, routeRules, devServer
- Runtime Modules: [email protected], @pinia/[email protected], @nuxtjs/[email protected], [email protected]
- Build Modules: -
from vuetify.
Attach is broken with v-dialog
too.
See this Vuetify Snips for reproduction
<v-dialog :attach="true">
<template v-slot:activator="{ props }">
<v-btn v-bind="props"> broken dialog (attach=true) </v-btn>
</template>
<template v-slot:default>
<v-card title="Dialog">
<v-card-text> attach=true </v-card-text>
</v-card>
</template>
</v-dialog>
from vuetify.
Related Issues (20)
- [Bug Report][3.6.9] Width does not animate properly in v-card with v-tabs-window
- [Feature Request] Pagination requires the function of jumping directly to page number # .
- [Bug Report][3.6.9] VDatePicker multiple After selecting and then canceling all selected dates, there is an issue with displaying them HOT 1
- [Bug Report][3.6.9] VDatePicker multiple for v-date-picker Display error HOT 10
- [Documentation] Is it v-tabs-window or v-window ?? HOT 1
- [Bug Report][3.6.9] Cannot fix the column to the right side of the table
- [Bug Report][3.6.9] v-icon doesn't display "icon" when slot is filled (regression from 3.0.0 beta 5) HOT 1
- [Bug Report][3.6.9] VFileInput do not work well with Firefox (Android) HOT 6
- [Bug Report][3.6.9] VDatePicker crash on danish with "date value is not finite in DateTimeFormat.format()"
- [Bug Report][3.6.9] TreeView unable to select multiple items since 3.6.9
- [Bug Report][3.6.9] v-stepper-vertical: Data Loss on Step Change HOT 1
- [Bug Report][3.6.9] Maximum recursive updates exceeded with v-for on snackbars HOT 2
- [Bug Report][3.6.9] VTextField displays inputs that should be hidden out of VField default slot
- [Feature Request] Better Keyboard/Accessibility support for new Date input component
- [Bug Report][3.6.10] VTable's global class setting affects VDataTable
- [Bug Report][3.6.10] VTextArea does not work correctly with both auto-grow and v-model.trim
- [Documentation] Deprecated useDisplay properties (xsOnly, smOnly, mdOnly, lgOnly, xlOnly)
- [Feature Request] Documentation for all the new versions
- [Bug Report][3.6.10] VDataTable group is not sorted when key is not in header HOT 1
- [Bug Report][3.6.10] VDataTable: GroupBy sort is not possible when sorting is disabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuetify.