You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: menu creates gesture on document, swiping on page opens menu on different page #19410
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 the ion-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:
clone and serve repo below
visit all three tabs (or at least tab2), but leave the menu on tab2 closed
go to tab3 or tab1
swipe from the left
go to tab2
note that the menu is open even though we did not swipe on this page
changed the title [-]bug: swipe on tab page opens menu on different tab[/-][+]bug: menu creates gesture on document, swiping on page opens menu on different page[/+]on Sep 17, 2021
Activity
liamdebeasi commentedon Sep 17, 2021
I can reproduce this behavior. The problem here is that
ion-menucreates the swipe gesture on thedocumentrather than the page it is presented on: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/menu/menu.tsx#L194The end result is that swiping on Tab 3 will open the menu on Tab 2.
[-]bug: swipe on tab page opens menu on different tab[/-][+]bug: menu creates gesture on document, swiping on page opens menu on different page[/+]