Просмотр исходного кода

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 11 лет назад
Родитель
Сommit
2fb176a244
1 измененных файлов с 3 добавлено и 4 удалено
  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);
           });