diff --git a/src/ScriptEditor/ui/Editor.tsx b/src/ScriptEditor/ui/Editor.tsx index 7c69c2a89..5e6dd0583 100644 --- a/src/ScriptEditor/ui/Editor.tsx +++ b/src/ScriptEditor/ui/Editor.tsx @@ -41,6 +41,11 @@ 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();