Bläddra i källkod

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

Johan Ahlen 8 år sedan
förälder
incheckning
a8d1659
1 ändrade filer med 0 tillägg och 3 borttagningar
  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()) {