Fix click handling in nested modals
This commit is contained in:
parent
7d0f94c654
commit
efe5bdbbe6
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ export const handleOutsideClick = (
|
||||||
const endedInside = isInside(target);
|
const endedInside = isInside(target);
|
||||||
// Clicked inside of one of container elements - stop processing
|
// Clicked inside of one of container elements - stop processing
|
||||||
if (startedInside || endedInside) {
|
if (startedInside || endedInside) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
// Stop processing if requested by handler function
|
// Stop processing if requested by handler function
|
||||||
return handler(target);
|
return handler(target);
|
||||||
|
|
Loading…
Reference in a new issue