瀏覽代碼

do not allow empty strings

Shun Miyazawa 2 年之前
父節點
當前提交
4f38378987
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/app/src/features/search/client/components/SearchMethodMenuItem.tsx

+ 1 - 1
apps/app/src/features/search/client/components/SearchMethodMenuItem.tsx

@@ -23,7 +23,7 @@ export const SearchMethodMenuItem = (props: Props): JSX.Element => {
 
   const { data: currentPagePath } = useCurrentPagePath();
 
-  const shouldShowMenuItem = searchKeyword.length > 0;
+  const shouldShowMenuItem = searchKeyword.trim().length > 0;
 
   return (
     <>