formik
formik copied to clipboard
Build forms in React, without the tears 😭
## Bug report ### Current Behavior I use the latest formik release with React v19, specifically `"@types/react": "^19.0.1"` and I get 4 errors like: ``` node_modules/formik/dist/types.d.ts:209:109 - error TS2503: Cannot...
Fixes #4011. To test this, I ran `yarn install` locally and verified that the aforementioned dist files no longer reference global `JSX`, but use `React.JSX` instead.
Sometimes need to get the new initial values provided by `resetForm` in `onReset` for example: ``` resetForm({values: newInitialValues}); const onReset = (currentValues, imperativeMethods, initialValues) ```
## Bug report I just upgraded my react native 0.64.2 app to the latest version 0.65.1 and all of a sudden all my forms stopped working. ### Current Behavior Forms...
Typo fix and -> an in FieldArray.tsx
## 🚀 Feature request Since `v2.1.0` we can do this: ```jsx const MyInput = (props) => { const [field, meta, helpers] = useField(props) const handleThing = () => { helpers.setValue('boop')...
## Bug report ### Current Behavior After updating to React 19 creating a form with a checkbox and not providing initial values will cause the checkbox to go into multi...
## Bug report ### Current Behavior With an input of `type="number"`, browsers will validate the value according to the [`step` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step) by default. If the input value is considered invalid,...
## Bug report ### Current Behavior When two fields have the same object value (same reference), the touched property does not get updated correctly on submit. ### Expected behaviour When...
## Bug report ### Current Behavior `useFormik` hook creates new formik instance each time being called ### Expected behavior Expected `useFormik` hook to return the same instance of formik object...