react-sane-contenteditable
react-sane-contenteditable copied to clipboard
When the user erase the text onChange is not trigger
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
Thanks @juancjara I'll take a look. This may have some cross-over with #31 which I'm currently working on
Cool, thanks. BTW really awesome project :+1:
@juancjara see #52