소스 검색

add comment

Yuken Tezuka 3 년 전
부모
커밋
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,