gtgalone / react-quilljs

React Hook Wrapper for Quill, powerful rich text editor.
https://www.npmjs.com/package/react-quilljs
MIT License
248 stars 28 forks source link

blur event not working #52

Closed fvn-manhtd closed 2 years ago

fvn-manhtd commented 2 years ago

I want to set blur on editor but it not working

  useEffect(() => {

    if (quill) {      
      quill.blur();
    }
  }, [quill]);
gtgalone commented 2 years ago

Hello! @fvn-manhtd

In which case would you like to use it?

If you want to add blur listener, like below

https://codesandbox.io/s/react-quilljs-basic-forked-h62fho

fvn-manhtd commented 2 years ago

Thanks you for your reply

Hello! @fvn-manhtd

In which case would you like to use it?

If you want to add blur listener, like below

https://codesandbox.io/s/react-quilljs-basic-forked-h62fho