Skip to content

Commit

Permalink
Merge pull request #6453 from melloware/PR6451
Browse files Browse the repository at this point in the history
Fix #6451: OverlayPanel add isVisible method to external API
  • Loading branch information
nitrogenous authored Apr 25, 2024
2 parents 783d863 + e302587 commit c3ca9e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/overlaypanel/OverlayPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const OverlayPanel = React.forwardRef((inProps, ref) => {
show,
hide,
align,
isVisible: () => visibleState,
getElement: () => overlayRef.current
}));

Expand Down
5 changes: 5 additions & 0 deletions components/lib/overlaypanel/overlaypanel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ export declare class OverlayPanel extends React.Component<OverlayPanelProps, any
* Align the overlay panel to its surroundings.
*/
public align(): void;
/**
* Checks whether the overlay is currently visible.
* @returns {boolean} A boolean value indicating whether the overlay is visible.
*/
public isVisible(): boolean;
/**
* Used to get container element.
* @return {HTMLDivElement} Container element
Expand Down

0 comments on commit c3ca9e5

Please sign in to comment.