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

HUE-7356 [frontend] Fix js error when clearing search if a result is selected

Johan Ahlen 8 лет назад
Родитель
Сommit
20bf23d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      desktop/core/src/desktop/templates/ko_components.mako

+ 1 - 0
desktop/core/src/desktop/templates/ko_components.mako

@@ -718,6 +718,7 @@ from desktop.views import _ko
               self.fetchResults(newValue);
             }, 500);
           } else {
+            self.selectedIndex(undefined)
             self.searchResultCategories([]);
           }
         });