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
Now when the user empty the input (partially 15/mm/2024 or fully jj/mm/aaaa), nothing is logged in the console, onChange is not triggered and the value of the state is not updated
This is a problem, if this date input is controlled with a state, the state value will be different from what the user has set
Versions
2.3.1
Expected
Like the <input type="date />, we see console logging an empty string
The text was updated successfully, but these errors were encountered:
Issue and Steps to Reproduce
The component has not the same behaviour as
<input type="date />
.onChange is not triggered when value is removed by the user.
To reproduce :
It works as expected when filling the input
Now when the user empty the input (partially 15/mm/2024 or fully jj/mm/aaaa), nothing is logged in the console, onChange is not triggered and the value of the state is not updated
This is a problem, if this date input is controlled with a state, the state value will be different from what the user has set
Versions
2.3.1
Expected
Like the
<input type="date />
, we see console logging an empty stringThe text was updated successfully, but these errors were encountered: