diff --git a/src/app/directives/addGraphiteFunc.js b/src/app/directives/addGraphiteFunc.js index e66689969ca..b585e7d003f 100644 --- a/src/app/directives/addGraphiteFunc.js +++ b/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); });