mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 17:30:37 +01:00
fix(FormGroup): hydration mismatch on inputId (#942)
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user