From 9986e4f7eab0c617a49e4c03d9d69e699cfc491d Mon Sep 17 00:00:00 2001 From: jquense Date: Thu, 1 Aug 2024 11:06:06 -0400 Subject: [PATCH] feat: add `isTopModal` on the modal ref handle --- src/Modal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Modal.tsx b/src/Modal.tsx index d5814be..4aa75ce 100644 --- a/src/Modal.tsx +++ b/src/Modal.tsx @@ -224,6 +224,7 @@ function useModalManager(provided?: ModalManager) { export interface ModalHandle { dialog: HTMLElement | null; backdrop: HTMLElement | null; + isTopModal: () => boolean; } const Modal: React.ForwardRefExoticComponent<