Jelajahi Sumber

clicking on anything other than input will close input

Shun Miyazawa 4 tahun lalu
induk
melakukan
2c676cbe76
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
           <ClosableTextInput
             isShown
             isShown
             placeholder={page.path}
             placeholder={page.path}
-            onClickOutside={() => { setNewPageInputShown(false) }}
+            onClickOutside={() => { setIsInputForRenameOpen(false) }}
             onPressEnter={onPressEnterHandlerForRename}
             onPressEnter={onPressEnterHandlerForRename}
           />
           />
         )}
         )}