Open kensodemann opened 5 years ago
I can reproduce this behavior. The problem here is that ion-menu
creates the swipe gesture on the document
rather than the page it is presented on: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/menu/menu.tsx#L194
The end result is that swiping on Tab 3 will open the menu on Tab 2.
Bug Report
Ionic version:
[x] 4.x
Current behavior: I have a customer who has a primarily tabs based app. However one of the pages also has a side menu with some other stuff.
I have created a sample that shows the issue where tab1 and tab3 are "normal" and tab2 has a side menu with the
contentId
set to theion-content
of the tab2 page. If tab2 page has been visited and the user goes to either tab1 or tab3 and swipes from the left the menu does not open (good, it should not), but when you then go to tab2 the menu is open. Somehow the swipe on tab1 or tab3 opened the menu on tab2...Expected behavior: menu on tab2 only swipes open when you are on tab2
Steps to reproduce:
Related code:
https://github.com/kensodemann/demo-single-page-menu
Ionic info: