mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(modal): swipe to close modal is no longer swipeable on footer (#23401)
resolves #23398
This commit is contained in:
@ -24,11 +24,11 @@ export const createSwipeToCloseGesture = (
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const content = target.closest('ion-content');
|
const contentOrFooter = target.closest('ion-content, ion-footer');
|
||||||
if (content === null) {
|
if (contentOrFooter === null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Target is in the content so we don't start the gesture.
|
// Target is in the content or the footer so do not start the gesture.
|
||||||
// We could be more nuanced here and allow it for content that
|
// We could be more nuanced here and allow it for content that
|
||||||
// does not need to scroll.
|
// does not need to scroll.
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user