You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you store the value for a Input component in state (controlled-component) and set the value from another source than the Input component itself, through handleChange or as initial value, the value of the text field is not updated. With React Developer Tools the props on the component looks to be updated but not the state (see screenshot).
Describe the bug
If you store the value for a Input component in state (controlled-component) and set the value from another source than the Input component itself, through handleChange or as initial value, the value of the text field is not updated. With React Developer Tools the props on the component looks to be updated but not the state (see screenshot).
To Reproduce
Steps to reproduce the behavior:
Code example:
If you click the button the value in the text field is still 'defaultUrl'.
Expected behavior
The value (state) of the text field should be updated.
Screenshots
Additional context
This becomes a problem if you for example want a button that sets default values for inputs.
This is really just a visual bug but makes the user experience bad.
The text was updated successfully, but these errors were encountered: