You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the React Monaco Editor component is loaded, it fails to update certain prop settings correctly during onChange events. This issue is particularly noticeable with the defaultLanguage prop, where the entered text in the editor is not highlighted correctly.
A workaround for this issue is to re-render the component every time an onChange event is triggered. Only when the component is remounted, the prop is updated, and the highlighting works as expected.
The text was updated successfully, but these errors were encountered:
When the React Monaco Editor component is loaded, it fails to update certain prop settings correctly during onChange events. This issue is particularly noticeable with the defaultLanguage prop, where the entered text in the editor is not highlighted correctly.
A workaround for this issue is to re-render the component every time an onChange event is triggered. Only when the component is remounted, the prop is updated, and the highlighting works as expected.
The text was updated successfully, but these errors were encountered: