From efe5bdbbe632f1b585fe784d10133453f903e1a1 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 11 Jul 2023 01:38:39 +0200 Subject: [PATCH] Fix click handling in nested modals --- ts/util/handleOutsideClick.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/util/handleOutsideClick.ts b/ts/util/handleOutsideClick.ts index 790c7e792..1514bf915 100644 --- a/ts/util/handleOutsideClick.ts +++ b/ts/util/handleOutsideClick.ts @@ -67,7 +67,7 @@ export const handleOutsideClick = ( const endedInside = isInside(target); // Clicked inside of one of container elements - stop processing if (startedInside || endedInside) { - return false; + return true; } // Stop processing if requested by handler function return handler(target);