Fix click handling in nested modals
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user