Add onBlur event#1224
Conversation
e4ed11f to
4caa01b
Compare
…eature/add-onblur-event
|
The I'll close the PR for now. If someone will have a use-case for the |
|
@neSpecc While I agree with you that it doesn't solve the issues some people might believe it would, it still gives power to the people. In my case in a react scenario I re-initialize the editor when I have new data from the server. If I use onChange (even debounced) as soon as a successful write happens my user loses editor focus because the editor is re-rendered. Which is fine if blocks were moved, but sucks when, well, when the editor is focused. If the debounce is too short I could be interrupted even mid sentence, if its too long I risk navigational side effects. If I knew that the editor is focused/blurred, I can write React logic to not re-initialize the editor until the editor is blurred and things would be solved rather cleanly without the use of a dedicated save button. |
#1225