Does not work with a controlled component
Closed this issue · 1 comments
Thanks so much for making such a useful little plugin, it is awesome.
I have encountered an issue while trying to use with react-quill wrapper. For some reason if you turn it into a controlled component and updated the value via onChange function of react-quill something brakes.
From console.logs I figured that the image gets stuck on base64 representation and then does not reach the next step of being deleted, and re-inserted as an img tag.
Here is a forked version of code sandbox
If you try to upload the image it will not work.
Thanks so much for working on this!
If I am totally missing something please point this poor soul towards it, haha :)
My bad, the problem was the div inside of the ReactQuill component, removing it made it work.