Skip to content

bug: menu can be swiped to open when not on root page #25272

@WhatsThatItsPat

Description

@WhatsThatItsPat

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

If you've pushed a few pages onto the stack, swiping from the left edge of the screen should pop pages off the stack. Only when you're at a nav root should swiping from the left expose the side menu.

But if you swipe from the left edge before a push or pop navigation animation has settled, you can drag out the side menu when you're not at the root of the nav stack.

Expected Behavior

Pushed pages should prevent the side menu swipeGesture from working until you're at the root.

Steps to Reproduce

This video explains it.

https://youtu.be/qTidttFLsZQ

Code Reproduction URL

https://github.com/WhatsThatItsPat/sidemenu-available-in-subpage

Ionic Info

Ionic:

Ionic CLI : 6.19.1
Ionic Framework : not installed
@angular-devkit/build-angular : not installed
@angular-devkit/schematics : not installed
@angular/cli : not installed
@ionic/angular-toolkit : not installed

Capacitor:

Capacitor CLI : not installed
@capacitor/android : not installed
@capacitor/core : not installed
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v16.13.2
npm : 8.1.2
OS : macOS Big Sur

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions