Scenario
User types one letter then he deletes (backspace) the letter
Expected Behavior
onChange prop handler being called with empty value
Actual Behavior
onChange is not being called because of the guard this.state.value !== value
Posible solution
Add and extra condition to trigger onChange prop when the value is empty
I can work on it if you want to
Scenario
User types one letter then he deletes (
backspace) the letterExpected Behavior
onChangeprop handler being called with empty valueActual Behavior
onChangeis not being called because of the guardthis.state.value !== valuePosible solution
Add and extra condition to trigger
onChangeprop when the value is emptyI can work on it if you want to