Commit d590aeb0 authored by yann300's avatar yann300

fix creating file/folder without focus

parent f58d473d
......@@ -166,7 +166,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
useEffect(() => {
if (focusRoot) {
setState(prevState => {
return { ...prevState, focusElement: [{ key: name, type: 'folder' }] }
return { ...prevState, focusElement: [{ key: '', type: 'folder' }] }
})
plugin.resetFocus(false)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment