Open denbalogh opened 1 year ago
Here's the issue in codesandbox https://codesandbox.io/s/bold-estrela-rzqwck?file=/src/App.js
@jaywcjlove I updated to latest release and now it won't even render the editor. Codesandbox
@denbalogh I'm trying to fix it by adding a destroyRerender
prop to turn off re-rendering the component on every update.
During the update, all extensions
will be lost. If you add dispatch({ effects })
, an @codemirror/merge
internal error will be triggered.
So I thought of a compromise method and regenerated it after updating, which caused the onChange
problem.
@jaywcjlove Is that a difficult problem to solve, will it take long? Sorry to be a bother, but we count on this functionality in our project.
@denbalogh Looks like the problem is solved
@jaywcjlove yes, seems like it is. Thank you, very appreciated 🙏
When I use
CodeMirrorMerge
withonChange
prop in theCodeMirrorMerge.Original
component, the editor gets unfocused every time I change the value.It is happening since the 4.21.2 update.