Bläddra i källkod

HUE-5847 [autocomplete] Hide the autocomplete dropdown when there are no matches after typing

Johan Ahlen 8 år sedan
förälder
incheckning
6d098a8

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/hue_ace_autocompleter.mako

@@ -21,7 +21,7 @@ from desktop.views import _ko
 
 <%def name="hueAceAutocompleter()">
   <script type="text/html" id="hue-ace-autocompleter">
-    <!-- ko if: active -->
+    <!-- ko if: active() && suggestions.filtered().length !== 0 -->
     <div class="hue-ace-autocompleter" data-bind="style: { top: top() + 'px', left: left() + 'px' }">
       <div class="autocompleter-suggestions">
         <!-- ko if: suggestions.availableCategories().length > 1 || suggestions.loading() -->