diff --git a/src/panel-triggers/datasource-selector.directive.js b/src/panel-triggers/datasource-selector.directive.js index e1eabd0..0d55483 100644 --- a/src/panel-triggers/datasource-selector.directive.js +++ b/src/panel-triggers/datasource-selector.directive.js @@ -2,7 +2,10 @@ import angular from 'angular'; import _ from 'lodash'; const template = ` - + `; @@ -35,6 +38,11 @@ class DatasourceSelectorCtrl { return {text: ds, value: ds, selected: _.includes(datasources, ds)}; }) }; + // Fix for Grafana 6.0 + // https://github.com/grafana/grafana/blob/v6.0.0/public/app/core/directives/value_select_dropdown.ts#L291 + this.dashboard = { + on: () => {} + }; } onChange(updatedOptions) {