react-sane-contenteditable icon indicating copy to clipboard operation
react-sane-contenteditable copied to clipboard

When the user erase the text onChange is not trigger

Open juancjara opened this issue 7 years ago • 3 comments

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

juancjara avatar Nov 15 '18 19:11 juancjara

Thanks @juancjara I'll take a look. This may have some cross-over with #31 which I'm currently working on

nijk avatar Nov 15 '18 20:11 nijk

Cool, thanks. BTW really awesome project :+1:

juancjara avatar Nov 16 '18 00:11 juancjara

@juancjara see #52

nijk avatar Mar 27 '19 21:03 nijk