Open BernardA opened 4 years ago
I have a similar issue, but not when tabbing, but when clicking the submit button:
onBlur
of the editor does not trigger. My problem is that I only write the editor content into my state when onBlur
happens (for performance reasons not on onChange
), and therefore the sent form values are wrong. I use a controlled form. Not really sure how to work around this, probably I need onChange
afterall and find another way to fix the performance issues :-/Update: looks my exact problem is already described in #385
I have looked at some similar issues, but they did not help me.
I am using react-quill with redux-form. The onBlur event does not triggered when tabbing out of the editor. So, if there's a validation error which normally are displayed when
redux-form
meta:touched is set to true, it does not show.Meta:touched is set to true on blur, by the way.
If I manually move the cursor back to the previous field in the form, it will then trigger the blur event and display error, if any.
On the screenshot below you can see that the error exists, but it is not displayed as
meta:touched
is set to false.This is the relevant code: ( full code in this repository)