mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
EDITOR: Work around bug in monaco-editor (#1470)
This commit is contained in:
parent
b7a996718b
commit
8f0ea7c8c4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user