react-markdown-editor-lite icon indicating copy to clipboard operation
react-markdown-editor-lite copied to clipboard

[BUG] Autoresize not working if updating value externally (field has no focus)

Open fgatti675 opened this issue 2 years ago • 0 comments

Thank you for an amazing library!

Your environment

MacOS Ventura, Chrome For example, Windows 10, Chrome 109

Description

There is a small bug with the autoresize plugin, when the value is updated by the user (the markdown field is focused), it resizes correctly. If the value is updated via an external action, it does not resize. I attach an example reproducing the issue. Thank you 🙏

Reproduction URL

https://codesandbox.io/s/falling-sun-t4xos5?file=/src/App.js

fgatti675 avatar Feb 19 '23 17:02 fgatti675