You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: use componentField in vee-validate examples (#1909)
* docs: use componentField in vee-validate examples
shadcn-vue form controls are Vue components with a modelValue prop bound
internally via v-model. Binding `field` passes `value`, which falls through
as a plain attribute and is overwritten by the component's own v-model, so
initialValues never render. Typing still works, which hid the bug.
Switch Input, Textarea, InputGroupInput, InputGroupTextarea, Select,
Checkbox, RadioGroup and Switch to `v-bind="componentField"`. Checkbox
arrays keep manual binding via the `value` and `handleChange` slot props,
since one field owns the whole array.
Also:
- Add Component/Native tabs to Anatomy showing when each slot prop applies
- Fix invalid `(checked | 'indeterminate')` handler signature
- Add missing `type="checkbox"` to the Switch example
- Move `:aria-invalid` from RadioGroupItem to RadioGroup
- Drop `@blur` from Select; SelectRoot sets inheritAttrs: false and discards it
- Realign stale showLineNumbers ranges
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* docs: migrate from form to field components
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments