Yuken Tezuka 3 лет назад
Родитель
Сommit
c7736b266b
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/app/src/components/SearchTypeahead.tsx

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

@@ -166,6 +166,8 @@ const SearchTypeahead: ForwardRefRenderFunction<IFocusable, Props> = (props: Pro
   }, [onSearchError, searchError]);
 
   useEffect(() => {
+    // update input with Next Link
+    // update input workaround. see: https://github.com/ericgio/react-bootstrap-typeahead/issues/266#issuecomment-414987723
     if (typeaheadRef.current != null) {
       typeaheadRef.current.setState({
         text: keywordOnInit,