diff --git a/public/app/core/components/colorpicker.ts b/public/app/core/components/colorpicker.ts
index 7c35ac7e4ac..1834a1eb8a1 100644
--- a/public/app/core/components/colorpicker.ts
+++ b/public/app/core/components/colorpicker.ts
@@ -7,10 +7,6 @@ import coreModule from 'app/core/core_module';
var template = `
-
-
-
-
`;
@@ -51,21 +46,17 @@ export class ColorPickerCtrl {
toggleAxis(yaxis) {
this.$scope.toggleAxis();
- if (!this.$scope.autoClose) {
+ if (this.$scope.autoClose) {
this.$scope.dismiss();
}
}
colorSelected(color) {
this.$scope.colorSelected(color);
- if (!this.$scope.autoClose) {
+ if (this.$scope.autoClose) {
this.$scope.dismiss();
}
}
-
- close() {
- this.$scope.dismiss();
- }
}
export function colorPicker() {
diff --git a/public/app/plugins/panel/graph/legend.js b/public/app/plugins/panel/graph/legend.js
index 5d9e1c24872..8146617bc22 100644
--- a/public/app/plugins/panel/graph/legend.js
+++ b/public/app/plugins/panel/graph/legend.js
@@ -49,7 +49,6 @@ function (angular, _, $) {
position: 'bottom center',
template: '
',
model: {
- autoClose: true,
series: series,
toggleAxis: function() {
ctrl.toggleAxis(series);
diff --git a/public/app/plugins/panel/graph/series_overrides_ctrl.js b/public/app/plugins/panel/graph/series_overrides_ctrl.js
index 7a41a650306..940da1a9e4b 100644
--- a/public/app/plugins/panel/graph/series_overrides_ctrl.js
+++ b/public/app/plugins/panel/graph/series_overrides_ctrl.js
@@ -59,6 +59,7 @@ define([
openOn: 'click',
template: '
',
model: {
+ autoClose: true,
colorSelected: $scope.colorSelected,
},
onClose: function() {
diff --git a/public/sass/components/_drop.scss b/public/sass/components/_drop.scss
index 0af497f46f2..4045c1daa4b 100644
--- a/public/sass/components/_drop.scss
+++ b/public/sass/components/_drop.scss
@@ -7,6 +7,7 @@ $attachmentOffset: 0%;
$easing: cubic-bezier(0, 0, 0.265, 1.00);
.drop-element {
+ z-index: 10000;
position: absolute;
display: none;
opacity: 0;