Skip to content

Commit ae96563

Browse files
authored
fix(modal): swipe to close modal is no longer swipeable on footer (#23401)
resolves #23398
1 parent d527414 commit ae96563

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/components/modal/gestures/swipe-to-close.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ export const createSwipeToCloseGesture = (
2424
return true;
2525
}
2626

27-
const content = target.closest('ion-content');
28-
if (content === null) {
27+
const contentOrFooter = target.closest('ion-content, ion-footer');
28+
if (contentOrFooter === null) {
2929
return true;
3030
}
31-
// Target is in the content so we don't start the gesture.
31+
// Target is in the content or the footer so do not start the gesture.
3232
// We could be more nuanced here and allow it for content that
3333
// does not need to scroll.
3434
return false;

0 commit comments

Comments
 (0)