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
monaco-editor version: 0.19.3 Browser: Chrome and Chromium OS: MacOS
When using Chrome's system menus to undo/redo the textarea that backs monaco can become out of sync with the editor content.
Repro
When unfocusing and recfocusing Chrome via cmd+~, the editor fails to respond to undo and redo events. I've added the following css to unhide the underlying textarea
textarea.inputarea {
width:100px!important;
color: white !important;
background:rgb(150,114,236) !important;
};
Suggestions
I'm unfamiliar with monaco but believe this issue could be fixed by also explicitly attaching a change handler to the textarea (which I've verified does fire in this case)