diff --git a/public/app/core/components/colorpicker/SeriesColorPicker.tsx b/public/app/core/components/colorpicker/SeriesColorPicker.tsx index ae744da423d..4fa2cc3f2b9 100644 --- a/public/app/core/components/colorpicker/SeriesColorPicker.tsx +++ b/public/app/core/components/colorpicker/SeriesColorPicker.tsx @@ -26,6 +26,10 @@ export class SeriesColorPicker extends React.Component { this.openColorPicker = this.openColorPicker.bind(this); } + componentWillUnmount() { + this.destroyDrop(); + } + openColorPicker() { if (this.colorPickerDrop) { this.destroyDrop(); diff --git a/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx b/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx index 6c50e4f1c58..55a28fc10b0 100644 --- a/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx +++ b/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx @@ -61,10 +61,36 @@ export class LegendItem extends React.PureComponent