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

fix searchtypeahead styles and behavior

Yuki Takei 3 лет назад
Родитель
Сommit
859f5b2faa

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

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

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

@@ -3,8 +3,8 @@
 // // 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
 // @import 'override-simplebar';