From ea6b415d5468e581992d529553b29310a6e40bce Mon Sep 17 00:00:00 2001 From: Ross Martin <2498502+rossmartin@users.noreply.github.com> Date: Fri, 19 Sep 2025 16:59:35 -0500 Subject: [PATCH] Prevent backdrop press when a modal is hiding --- src/lib/ModalStack.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ModalStack.tsx b/src/lib/ModalStack.tsx index 904220f..1c0f3d1 100644 --- a/src/lib/ModalStack.tsx +++ b/src/lib/ModalStack.tsx @@ -133,7 +133,7 @@ const ModalStack =

(props: Props

) => { } const onBackdropPress = () => { - if (backBehavior === 'none') return + if (backBehavior === 'none' || stackStatus === 'hiding') return const currentItem = [...stack.openedItems].slice(-1)[0]