-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar: React Hook Form Demo #3145
Comments
@andreluisos did you really mean to close this? |
I wasn't sure because documentation says default value for Calendar is null. |
It works for me see my demo: https://codesandbox.io/s/angry-shadow-ru4ix2?file=/src/demo/ReactHookFormDemo.js I updated your Sandbox and had to add It works with |
Apparently, mask is also required to trigger the issue. Add |
Yep duplicate of #2927 subscribe to that issue |
Describe the bug
When controlling the component with useForm (react-hook-form), if default value is set to empty string, instead of null, and showOnFocus is off, the field won't input data properly.
Reproducer
https://codesandbox.io/s/practical-bhaskara-dgq2g1
PrimeReact version
8.3.0
React version
18.x
Language
ES6
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Proper data input.
The text was updated successfully, but these errors were encountered: