EDITOR: Follow-up of #1470 (Editor outline) (#1498)

This commit is contained in:
catloversg
2024-07-18 05:18:10 +07:00
committed by GitHub
parent abe7a43eec
commit cea0afe1f4
2 changed files with 16 additions and 5 deletions
-5
View File
@@ -41,11 +41,6 @@ export function Editor({ onMount, onChange, onUnmount }: EditorProps) {
onChange(editorRef.current?.getValue());
});
// This is the workaround for a bug in monaco-editor: https://github.com/microsoft/monaco-editor/issues/4455
if (containerDiv.current.firstElementChild) {
(containerDiv.current.firstElementChild as HTMLElement).style.outline = "none";
}
// Unmounting
return () => {
onUnmount();