This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 486
initialData not working #465
Comments
@antuneslv Hey Antunes! There are some factors that catch my attention. Did you declared the hook useField? const {..., defaultValue} = useField(...) It's necessary than you use defaultValue in your input for your initialData found.
|
@antuneslv For example, I tested a code creating a separate component Input and I use inside App. It works form me: Input component:
App
Please, send me a feedback and I'll help you if you need. Bye! |
@HugoFortunato thanks for your reply. I had to create an input component and use defaultValue to get it right. Using direct input without being a component wasn't working very well because of the properties of the input itself. Now it's working, thanks for the help. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of bug
Initial data is not providing any value for the input field.
To Reproduce
To test it I reproduced the same code code as in the documentation.
Expected behavior
Expected an input with a value of
test@example.com
Exception or Error
This issue is not accompanied by an exception or an error.
Screenshots
As you can see, the input is blank.
Environment:
The text was updated successfully, but these errors were encountered: