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