diff --git a/src/runtime/components/Checkbox.vue b/src/runtime/components/Checkbox.vue index 2ae0b3df..735ab2e2 100644 --- a/src/runtime/components/Checkbox.vue +++ b/src/runtime/components/Checkbox.vue @@ -44,8 +44,8 @@ const modelValue = defineModel({ default: undefined }) const rootProps = useForwardProps(reactivePick(props, 'as', 'required', 'value')) const appConfig = useAppConfig() -const { inputId: _inputId, emitFormChange, size, color, name, disabled } = useFormField(props) -const inputId = _inputId.value ?? useId() +const { id: _id, emitFormChange, size, color, name, disabled } = useFormField(props) +const id = _id.value ?? useId() const indeterminate = computed(() => (modelValue.value === undefined && props.indeterminate)) @@ -79,7 +79,7 @@ function onChecked() {
-