Yuki Takei пре 4 година
родитељ
комит
dcb196c79a
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      packages/app/src/components/SearchTypeahead.tsx

+ 6 - 0
packages/app/src/components/SearchTypeahead.tsx

@@ -94,7 +94,13 @@ const SearchTypeahead: ForwardRefRenderFunction<IFocusable, Props> = (props: Pro
 
 
     setInput('');
     setInput('');
     changeKeyword('');
     changeKeyword('');
+    setPages([]);
+
     focusToTypeahead();
     focusToTypeahead();
+
+    if (onInputChange != null) {
+      onInputChange('');
+    }
   };
   };
 
 
   /**
   /**