fix(menu): swipe gesture should not open menu when a modal is displayed (#20546)

fixes #20467
This commit is contained in:
Liam DeBeasi
2020-02-19 08:57:42 -05:00
committed by GitHub
parent 800a9339bc
commit 3252c2f8dc

View File

@@ -360,7 +360,9 @@ AFTER:
}
private canStart(detail: GestureDetail): boolean {
if (!this.canSwipe()) {
// Do not allow swipe gesture if a modal is open
const isModalPresented = !!document.querySelector('ion-modal.show-modal');
if (isModalPresented || !this.canSwipe()) {
return false;
}
if (this._isOpen) {