fix(modal): swipe to close modal is no longer swipeable on footer (#23401)

resolves #23398
This commit is contained in:
Hans Krywalsky
2021-06-02 14:59:25 +02:00
committed by GitHub
parent d527414e10
commit ae96563fb3

View File

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