mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TooltipPlugin: Remove other panels' shared tooltip in edit panel (#42187)
This commit is contained in:
@@ -166,11 +166,13 @@ export default function GraphTooltip(this: any, elem: any, dashboard: any, scope
|
|||||||
self.show(pos, item);
|
self.show(pos, item);
|
||||||
|
|
||||||
// broadcast to other graph panels that we are hovering!
|
// broadcast to other graph panels that we are hovering!
|
||||||
pos.panelRelY = (pos.pageY - elem.offset().top) / elem.height();
|
if (!dashboard.panelInEdit) {
|
||||||
hoverEvent.payload.pos = pos;
|
pos.panelRelY = (pos.pageY - elem.offset().top) / elem.height();
|
||||||
hoverEvent.payload.panel = panel;
|
hoverEvent.payload.pos = pos;
|
||||||
hoverEvent.payload.point['time'] = (pos as any).x;
|
hoverEvent.payload.panel = panel;
|
||||||
dashboard.events.publish(hoverEvent);
|
hoverEvent.payload.point['time'] = (pos as any).x;
|
||||||
|
dashboard.events.publish(hoverEvent);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
elem.bind('plotclick', (event: any, pos: any, item: any) => {
|
elem.bind('plotclick', (event: any, pos: any, item: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user