Skip to content

Commit

Permalink
feat: add isTopModal on the modal ref handle
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Aug 1, 2024
1 parent d555a1f commit 9986e4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ function useModalManager(provided?: ModalManager) {
export interface ModalHandle {
dialog: HTMLElement | null;
backdrop: HTMLElement | null;
isTopModal: () => boolean;
}

const Modal: React.ForwardRefExoticComponent<
Expand Down

0 comments on commit 9986e4f

Please sign in to comment.