diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 273986163..418d15ced 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -132,7 +132,7 @@ Prometheus.Graph.prototype.initialize = function() { self.insertMetric.change(function() { self.expr.selection("replace", {text: self.insertMetric.val(), mode: "before"}); - self.insertMetric.focus(); // refocusing + self.expr.focus(); // refocusing }); self.expr.focus(); // TODO: move to external Graph method.