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
The Input component does not update internal value state when supplied blank string as value in props. Input.getValue() calls processChildren() when props.value evaluates to false (as empty string does), resulting in a null value because props.children is null. Input.getDerivedStateFromProps() does not update state.value when Input.getValue() returns null.
To Reproduce
Supply Input with non-empty string as value prop. Change value prop to be an empty string. Input still displays the old value, instead of empty string.
🐛 Bug Report
The Input component does not update internal value state when supplied blank string as value in props. Input.getValue() calls processChildren() when props.value evaluates to false (as empty string does), resulting in a null value because props.children is null. Input.getDerivedStateFromProps() does not update state.value when Input.getValue() returns null.
To Reproduce
Supply Input with non-empty string as value prop. Change value prop to be an empty string. Input still displays the old value, instead of empty string.
Expected behavior
Input should be empty.
Run
npx envinfo
Paste the results here:
The text was updated successfully, but these errors were encountered: