Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Sep 18, 2023
1 parent 905bd86 commit 3e7b65d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/utils/overlays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ export const dismissOverlay = (
return overlay.dismiss(data, role);
};

/**
* Returns a list of all overlays in the DOM even if they are not presented.
*/
export const getOverlays = (doc: Document, selector?: string): HTMLIonOverlayElement[] => {
if (selector === undefined) {
selector = 'ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast';
Expand Down

0 comments on commit 3e7b65d

Please sign in to comment.