Просмотр исходного кода

fix searchtypeahead styles and behavior

Yuki Takei 3 лет назад
Родитель
Сommit
859f5b2faa
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      packages/app/src/components/SearchTypeahead.tsx
  2. 2 2
      packages/app/src/styles/style-next.scss

+ 1 - 1
packages/app/src/components/SearchTypeahead.tsx

@@ -208,7 +208,7 @@ const SearchTypeahead: ForwardRefRenderFunction<IFocusable, Props> = (props: Pro
     );
     );
   }, [disableIncrementalSearch, helpElement, input, isForcused]);
   }, [disableIncrementalSearch, helpElement, input, isForcused]);
 
 
-  const isLoading = searchResult == null && searchError == null;
+  const isLoading = searchResult !== undefined && searchError == null;
   const isOpenAlways = helpElement != null;
   const isOpenAlways = helpElement != null;
 
 
   return (
   return (

+ 2 - 2
packages/app/src/styles/style-next.scss

@@ -3,8 +3,8 @@
 // // override codemirror
 // // override codemirror
 // @import 'override-codemirror';
 // @import 'override-codemirror';
 
 
-// // override react-bootstrap-typeahead styles
-// @import 'override-rbt';
+@import '~react-bootstrap-typeahead/css/Typeahead';
+@import 'override-rbt';
 
 
 // // override simplebar-react styles
 // // override simplebar-react styles
 // @import 'override-simplebar';
 // @import 'override-simplebar';