Skip to content

Commit

Permalink
Fix primefaces#6451: OverlayPanel add isVisible method to external API
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Apr 23, 2024
1 parent 6ef3a90 commit e302587
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 e302587

Please sign in to comment.