Commit 52e2091f by Torkel Ödegaard

fix(): fixed issue with series override color selector when using the mouse to…

fix(): fixed issue with series override color selector when using the mouse to select color option, fixes #4620
parent 1a29a769
......@@ -46,9 +46,12 @@ function popoverSrv($compile, $rootScope) {
drop.on('close', () => {
popoverScope.dismiss({fromDropClose: true});
destroyDrop();
if (options.onClose) {
options.onClose();
}
});
drop.open();
setTimeout(() => { drop.open(); }, 10);
};
}
......
......@@ -60,6 +60,9 @@ define([
template: '<gf-color-picker></gf-color-picker>',
model: {
colorSelected: $scope.colorSelected,
},
onClose: function() {
$scope.ctrl.seriesOverrideChanged();
}
});
};
......
......@@ -22,6 +22,7 @@ define([
ctx.scope.ctrl = {
refresh: sinon.spy(),
render: sinon.spy(),
seriesOverrideChanged: sinon.spy(),
seriesList: []
};
ctx.scope.render = function() {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment