monaco-react
monaco-react copied to clipboard
fix: Prevent onChange from firing when updating value in readOnly mode
Close #504
As mentioned in the Issue, this is a fix for the bug where updating the value triggers onChange when the Editor's readOnly is set to true.
Specifically, I limited the triggering of onChange by setting preventTriggerChangeEvent.current = true; even when readOnly is true.