소스 검색

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

Johan Ahlen 8 년 전
부모
커밋
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([]);
           }
         });