uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.17k stars 156 forks source link

Text area doesn't update after render if we update the value by api #94

Closed raha1923 closed 3 years ago

raha1923 commented 3 years ago

I'm using this package in one of my projects. Everything is ok if I render the package and start typing markdown content in it but if I just click on a button after the render to get markdown data from the internet (or anywhere else) and then send it down to the component using the props, the preview works fine but the text area would be empty.

jaywcjlove commented 3 years ago

@raha1923 Upgrade + @uiw/react-md-editor@2.1.2, thx!

raha1923 commented 3 years ago

wow, thank you a lot, such a quick reaction and response.

great.