mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-19 20:38:42 +02: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());
|
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
|
// Unmounting
|
||||||
return () => {
|
return () => {
|
||||||
onUnmount();
|
onUnmount();
|
||||||
|
Loading…
Reference in New Issue
Block a user