From 09040b5da5f3f2a8123c6c9244d91bf3be01a44d Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 4 Mar 2021 12:14:50 +0100 Subject: [PATCH] fix reset focus --- libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 9c656bfb3a..00ae818a0f 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -29,9 +29,9 @@ export const Workspace = (props: WorkspaceProps) => { const NO_WORKSPACE = ' - none - ' /* extends the parent 'plugin' with some function needed by the file explorer */ - props.plugin.resetFocus = () => { + props.plugin.resetFocus = (reset) => { setState(prevState => { - return { ...prevState, reset: true } + return { ...prevState, reset } }) }