Fix click handling in nested modals

This commit is contained in:
Fedor Indutny 2023-07-11 01:38:39 +02:00 committed by GitHub
parent 7d0f94c654
commit efe5bdbbe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);