Open kingyue737 opened 6 months ago
Same issue here, also with form inputs.
As I could not find any information on how to fix this, I temporarily worked around it by putting the whole v-form
into a v-no-ssr
directive. But it's not ideal.
@frederikheld my temporary workaround is filtering mismatch warning via warnHandler
for example
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.config.warnHandler = (msg, instance, info) => {
if (
msg.startsWith('Hydration attribute mismatch') &&
(msg.includes('id="input') || msg.includes('for="input'))
) {
return;
}
console.warn(msg, info);
};
});
This can be fixed by useId
introduced by vue v3.5 https://blog.vuejs.org/posts/vue-3-5#useid
This can be fixed by
useId
introduced by vue v3.5 https://blog.vuejs.org/posts/vue-3-5#useid
Thanks! This is useful in two ways:
Environment
Vuetify Version: 3.6.4 Vue Version: 3.4.25 Browsers: Edge 124.0.0.0 OS: Windows 10
Steps to reproduce
mount a vuetify component with
id
or similar attributeExpected Behavior
no warning
Actual Behavior
Reproduction Link
https://stackblitz.com/edit/github-fi3r47-ntgp2l