Yuken Tezuka 3 lat temu
rodzic
commit
c7736b266b

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

@@ -166,6 +166,8 @@ const SearchTypeahead: ForwardRefRenderFunction<IFocusable, Props> = (props: Pro
   }, [onSearchError, searchError]);
   }, [onSearchError, searchError]);
 
 
   useEffect(() => {
   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) {
     if (typeaheadRef.current != null) {
       typeaheadRef.current.setState({
       typeaheadRef.current.setState({
         text: keywordOnInit,
         text: keywordOnInit,