diff --git a/public/app/core/components/form_dropdown/form_dropdown.ts b/public/app/core/components/form_dropdown/form_dropdown.ts
index 331a7381523..364d61cfcdb 100644
--- a/public/app/core/components/form_dropdown/form_dropdown.ts
+++ b/public/app/core/components/form_dropdown/form_dropdown.ts
@@ -1,5 +1,3 @@
-///
-
import _ from 'lodash';
import $ from 'jquery';
import coreModule from '../../core_module';
@@ -201,9 +199,9 @@ export class FormDropdownCtrl {
}
open() {
- this.inputElement.show();
-
this.inputElement.css('width', (Math.max(this.linkElement.width(), 80) + 16) + 'px');
+
+ this.inputElement.show();
this.inputElement.focus();
this.linkElement.hide();
diff --git a/public/app/core/services/segment_srv.js b/public/app/core/services/segment_srv.js
index f1733fcb3e6..d615525988a 100644
--- a/public/app/core/services/segment_srv.js
+++ b/public/app/core/services/segment_srv.js
@@ -103,7 +103,7 @@ function (angular, _, coreModule) {
};
this.newPlusButton = function() {
- return new MetricSegment({fake: true, html: '', type: 'plus-button' });
+ return new MetricSegment({fake: true, html: '', type: 'plus-button', cssClass: 'query-part' });
};
this.newSelectTagValue = function() {
diff --git a/public/app/plugins/datasource/graphite/graphite_query.ts b/public/app/plugins/datasource/graphite/graphite_query.ts
index 12301befff8..2a70667fdac 100644
--- a/public/app/plugins/datasource/graphite/graphite_query.ts
+++ b/public/app/plugins/datasource/graphite/graphite_query.ts
@@ -25,6 +25,7 @@ export default class GraphiteQuery {
parseTarget() {
this.functions = [];
this.segments = [];
+ this.tags = [];
this.error = null;
if (this.target.textEditor) {
diff --git a/public/app/plugins/datasource/graphite/partials/query.editor.html b/public/app/plugins/datasource/graphite/partials/query.editor.html
index 0a969680bbb..b79164e1781 100755
--- a/public/app/plugins/datasource/graphite/partials/query.editor.html
+++ b/public/app/plugins/datasource/graphite/partials/query.editor.html
@@ -7,7 +7,7 @@