fix(FormGroup): hydration mismatch on inputId (#942)

This commit is contained in:
Romain Hamel
2023-11-14 14:23:51 +01:00
committed by GitHub
parent 3c71bf36b0
commit a3046aa256
4 changed files with 18 additions and 12 deletions

View File

@@ -36,7 +36,6 @@ import { twMerge, twJoin } from 'tailwind-merge'
import { useUI } from '../../composables/useUI'
import { useFormGroup } from '../../composables/useFormGroup'
import { mergeConfig } from '../../utils'
import { uid } from '../../utils/uid'
import type { Strategy } from '../../types'
// @ts-expect-error
import appConfig from '#build/app.config'
@@ -50,8 +49,7 @@ export default defineComponent({
props: {
id: {
type: String,
// A default value is needed here to bind the label
default: () => uid()
default: () => null
},
value: {
type: [String, Number, Boolean, Object],