form
form copied to clipboard
🤖 Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, and Lit.
for `formInstance.setValues` the docs say `If a callback is passed, it will be given the previous value and be expected to return a new one, similar to React's setState callback...
Assume I have the following array-like field ``` "friends": [ "James", "Julie", "John" ] ``` and I want to insert a fourth value between "James" and "Julie". What would be...
In your own example: https://codesandbox.io/s/react-form-custom-select-multi-select-inputs-6962t The canSubmit is `true` even before the two colors in the multiselect have been set. As long as the single select have been set, it's...
It'd be nice if useField could optionally return a `FieldLabel` component that references the field with `htmlFor` automatically. FieldLabel would render a `` element. The field would need to set...
this change fixes the docs for formInstance setValues and adds the updater callback to formInstance.setValues
I'm not sure how to explain this, but here it goes: We were using react-form and had a `fieldInstance.debounce` in the field's validate function. When you were removing the field...
When a field has an array value and an element is removed from this array, the meta information of the "child" fields is not moved correctly. I have prepared a...
I have a field `items` which in turn has objects inside. ```ts items: [ {id: '1', someProp: 'foo'}, {id: '2', someProp: 'bar'} ] ``` The properties of items are in...
Working with useForm and useField and the Material-ui select component i've noticed a bad behaviour caused by the onBlur function. When I click the select to select a value, the...
Hey, it would be great to have a functionality to run validation on a specific field. for example, i have input with amount that the minimum amount is depended on...