Browse Source

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

Johan Ahlen 8 năm trước cách đây
mục cha
commit
20bf23d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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([]);
           }
         });