Explorar el Código

Graphite: fix for graphite query editor, when adding functions and the function selection dropdown get push down the selection did not work properly, Fixes #1038

Torkel Ödegaard hace 11 años
padre
commit
2fb176a244
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      src/app/directives/addGraphiteFunc.js

+ 3 - 4
src/app/directives/addGraphiteFunc.js

@@ -68,13 +68,12 @@ function (angular, app, _, $, gfunc) {
           });
 
           $input.blur(function() {
-            $input.hide();
-            $input.val('');
-            $button.show();
-            $button.focus();
             // clicking the function dropdown menu wont
             // work if you remove class at once
             setTimeout(function() {
+              $input.val('');
+              $input.hide();
+              $button.show();
               elem.removeClass('open');
             }, 200);
           });