From e3025870f848bc7e23117d4d11bf4dcd032f7321 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 23 Apr 2024 08:03:40 -0400 Subject: [PATCH] Fix #6451: OverlayPanel add isVisible method to external API --- components/lib/overlaypanel/OverlayPanel.js | 1 + components/lib/overlaypanel/overlaypanel.d.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/components/lib/overlaypanel/OverlayPanel.js b/components/lib/overlaypanel/OverlayPanel.js index 08deb96a7d..aece64f365 100644 --- a/components/lib/overlaypanel/OverlayPanel.js +++ b/components/lib/overlaypanel/OverlayPanel.js @@ -225,6 +225,7 @@ export const OverlayPanel = React.forwardRef((inProps, ref) => { show, hide, align, + isVisible: () => visibleState, getElement: () => overlayRef.current })); diff --git a/components/lib/overlaypanel/overlaypanel.d.ts b/components/lib/overlaypanel/overlaypanel.d.ts index 527d3006f9..3171e6c45a 100644 --- a/components/lib/overlaypanel/overlaypanel.d.ts +++ b/components/lib/overlaypanel/overlaypanel.d.ts @@ -182,6 +182,11 @@ export declare class OverlayPanel extends React.Component