Ver Fonte

clicking on anything other than input will close input

Shun Miyazawa há 4 anos atrás
pai
commit
2c676cbe76
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 1 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -266,7 +266,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
           <ClosableTextInput
             isShown
             placeholder={page.path}
-            onClickOutside={() => { setNewPageInputShown(false) }}
+            onClickOutside={() => { setIsInputForRenameOpen(false) }}
             onPressEnter={onPressEnterHandlerForRename}
           />
         )}