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

fix(search): fix search value Component

Lind 3 лет назад
Родитель
Сommit
788466e2a3
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/components/SearchComponent/index.tsx

+ 4 - 0
src/components/SearchComponent/index.tsx

@@ -153,6 +153,10 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
               f.setFieldState(typeFiled.query('.termType'), async (state) => {
                 state.value = 'gt';
               });
+            } else {
+              f.setFieldState(typeFiled.query('.value'), async (state) => {
+                state.componentType = 'Input';
+              });
             }
           });
         },