瀏覽代碼

HUE-7225 [autocomplete] Prevent new line on enter when a suggestion equals the typed text

Johan Ahlen 8 年之前
父節點
當前提交
a8d1659
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      desktop/core/src/desktop/templates/hue_ace_autocompleter.mako

+ 0 - 3
desktop/core/src/desktop/templates/hue_ace_autocompleter.mako

@@ -511,9 +511,6 @@ from desktop.views import _ko
         if (valueToInsert.toLowerCase() === self.suggestions.filter().toLowerCase()) {
           // Close the autocompleter when the user has typed a complete suggestion
           self.detach();
-          if (emptyCallback) {
-            emptyCallback();
-          }
           return;
         }
         if (self.suggestions.filter()) {