From f135aaad97897240a3b6d14e166422dfd7901cb9 Mon Sep 17 00:00:00 2001 From: anyuanzheng Date: Thu, 18 Apr 2024 16:36:04 +0800 Subject: [PATCH] send a iframe ready event to parent --- public/app/features/dashboard/dashgrid/DashboardGrid.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx index 532ebd73217..b3c3cdc6f1b 100644 --- a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx @@ -81,6 +81,8 @@ export class DashboardGrid extends PureComponent { } this.eventSubs.add(dashboard.events.subscribe(DashboardPanelsChangedEvent, this.triggerForceUpdate)); + + window.parent.postMessage({ type: 'iframe-ready' }, '*'); } componentWillUnmount() {