Comments (3)
hey @breytex,
Thanks for the detailed issue reporting :)
because you registered that input manually instead of
<input ref={regsiter} />
so react hook form will not have the reference with the input ref
when you start to type in the input
, It wouldn't re-validate itself.
with setError
you can set error and clear manually
const handleChange = (e) => {
if (e.target.value) {
setError('test');
}
}
<input onChange={handleChange} />
or
triggerValidation({
name: 'test',
value: e.target.value,
})
https://codesandbox.io/s/beautiful-hertz-ert5m
from react-hook-form.
hey @breytex
just a quick follow up on this issue, how u doing with it?
cheers
bill
from react-hook-form.
going to close this issue, for now, feel free to reopen if you still have question 👍
from react-hook-form.
Related Issues (20)
- issue: error object from both formState and fieldState are always undefined with useController HOT 1
- issue: Password match validation don't hide error, when input not mentioned in refine() 'path' has changed to valid
- issue: useFieldArray and getFieldState causes react console warnings HOT 4
- Form reset, append adds ghost empty fields HOT 5
- Allow JSX elements/React components to be returned as an error message HOT 3
- issue: setError does not work with ErrorMessage component
- issue: the `formState.errors`default type is incorrect HOT 1
- issue: disabled property in useForm applied to Form Provider does not apply to all radio inputs HOT 1
- issue: valueAsDate parses based on current timezone HOT 1
- issue: Duplicated checkboxes create the same values in array HOT 5
- issue: TypeScript error when specifying `defaultValues` with generic types in `useForm` HOT 1
- issue: When using reValidateMode: 'onBlur', the form doesn't submit when its single error is fixed HOT 6
- issue: Select input doesnt work when there's "," and "." HOT 1
- issue: Multi-page form validation issue with react-hook-form and arrays
- dirtyFields changes from type object to type array after submit
- issue: FieldErrors type doesn't support the "root" property HOT 1
- issue: 7.51.4 form initially dirty when using shouldUnregister: true HOT 1
- issue: AJV resolvers custom keywords errors are not present in formState.errors
- Feature Request: Introduce setSuccess Function Similar to setError in React-Hook-Form
- Controller changes checkbox behavior HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-hook-form.