Explorar o código

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

Johan Ahlen %!s(int64=8) %!d(string=hai) anos
pai
achega
a8d1659

+ 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()) {