Comments (4)
patched: https://github.com/bluebill1049/react-hook-form/releases/tag/3.8.4 👍
from react-hook-form.
hey @durianjc
Thanks for the reporting!
I will patch that bug over the weekend, it should register into touched
.
by the way, you can register
by useEffect too
useEffect(() => {
reigster({ name: 'date' });
}, [])
so you don't have to create a hidden input.
from react-hook-form.
hey @durianjc
Thanks for the reporting!
I will patch that bug over the weekend, it should register into
touched
.by the way, you can
register
by useEffect toouseEffect(() => { reigster({ name: 'date' }); }, [])
so you don't have to create a hidden input.
Thanks a lot for your quick response and patch, wow!
I also tried this approach before I used a hidden input, but there are problems with it, I posted another ticket: #44
from react-hook-form.
feel free to re-open this issue, if it is not resolved.
from react-hook-form.
Related Issues (20)
- issue: when setting validation to min: 2 value 0 is ignored
- issue: bad setState() call inside `Controller` error when early returning and accessing `formState.isValid`
- issue: Problem with focus precedence HOT 2
- Registering nested objects changes default values
- issue: (in my project only) infinite rerender when using errors from formState and errors in hook configuration HOT 5
- issue: when use formState.isValid, fieldArray replace will make resolver call many times HOT 1
- RHF is triggering 3 times as many rerenders on validation HOT 4
- issue: removing last number with trailing zeros deletes all the right side zeros, when used with `react-number-format` HOT 1
- issue: formState isDirty breaks under certain conditions
- issue: `useWatch` return value does not match `watch` when used with `useFieldArray` HOT 1
- issue: Fields built with the Controller component does not unregister properly
- issue: Cannot register to an object that contains an empty string as a key
- When use setValue({ shouldValidate: true }), it triggers rerender even if formState.errors haven't changed
- issue: useFieldArray fields is not updated when input changes HOT 1
- issue: useConroller creates empty objects for nested fields HOT 1
- can the field property returned by useController return if the field is required or not?
- issue: validate rules shift errors HOT 2
- issue: Fields dirty state is not updated when passing values to useForm since 7.51.0 HOT 5
- Issue: Error doesn't clear even when isValid state is 'true' HOT 2
- issue: Controller rules.pattern doesn't apply new value without explicit undefined 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.