From 24f277adff29274220bcb2f86761c96f35ac9ca5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 19 May 2022 10:03:54 +0200 Subject: [PATCH] remove focus --- libs/remix-ui/workspace/src/lib/components/file-explorer.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx index ea87e6779e..a0351ea3a1 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx @@ -78,7 +78,6 @@ export const FileExplorer = (props: FileExplorerProps) => { targetDocument.addEventListener('keydown', keyPressHandler) targetDocument.addEventListener('keyup', keyUpHandler) - targetDocument.focus() return () => { targetDocument.removeEventListener('keydown', keyPressHandler) targetDocument.removeEventListener('keyup', keyUpHandler)