mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(menu): swipe gesture should not open menu when a modal is displayed (#20546)
fixes #20467
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user