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: navigating with multiple split panes causes first menu to never be reactivated #18683
Hi. i am using 2 split-pane, firstmenu/firstpage will be my home screen. from firstpage i am navigating to secondmenu/secondpage. now when i return back to firstmenu/firstpage, the split-pane is getting hide, can someone help me on this please. see the screenshot and code below.
Hi. i am using 2 split-pane, firstmenu/firstpage will be my home screen. from firstpage i am navigating to secondmenu/secondpage. now when i return back to firstmenu/firstpage, the split-pane is getting hide, can someone help me on this please. see the screenshot and code below.
Members
0
18 posts
Report post
Posted May 29 (edited)
Hi simon. i am using 2 split-pane, firstmenu/firstpage will be my home screen. from firstpage i am navigating to secondmenu/secondpage. now when i return back to firstmenu/firstpage, the split-pane is getting hide. this is stopper for my application, can you help on this please. see the screenshot and code below.
Thanks for the issue. I think this problem stems from the fact that we only allow 1 menu to be enabled at a time. If you want these two side panes to be always be open, I would recommend wrapping them in something other than ion-menu.
In your demo repo, I wrapped them each in a div rather than an ion-menu and the issue disappeared. Can you try this and let me know if it works for your use case?
If you really need to use ion-menu, I would recommend only having 1 instance of the menu.
Issue happens even if only using one ion-menu; @liamdebeasi your quick fix works, if I replace ion-menu tag with a div one, split pane is always shown.
@liamdebeasi are you saying we should have no more than one menu in an application or we may run into problems even if only one of them is shown at one time?
I fixed this by replacing the <ion-menu> with a div as mentioned before. Then, in order to make <ion-header> and <ion-content> work properly inside that div, I applied flex-direction: column; to the div. Hope this helps!
I fixed this by replacing the <ion-menu> with a div as mentioned before. Then, in order to make <ion-header> and <ion-content> work properly inside that div, I applied flex-direction: column; to the div. Hope this helps!
If you use this method, how does your menu toggle work on smaller screens? My burger menu will not appear, so you cannot access the menu.
The basic premise of the above is: when an item is selected AND the screen is smaller than the SM breakpoint (=576px), disable the split screen so the "menu" is not shown. In case no item is selected, only the menu is shown as the when property is set to xs and I've set the side minimum width to 100% for screen widths lower then the SM breakpoint
Thanks for the issue. This has been resolved via #28370, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to keep testing the dev build, and let me know if you run into any problems.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
yogeshshsf commentedon Jul 1, 2019
Hi. i am using 2 split-pane, firstmenu/firstpage will be my home screen. from firstpage i am navigating to secondmenu/secondpage. now when i return back to firstmenu/firstpage, the split-pane is getting hide, can someone help me on this please. see the screenshot and code below.
Members
0
18 posts
Report post
Posted May 29 (edited)
Hi simon. i am using 2 split-pane, firstmenu/firstpage will be my home screen. from firstpage i am navigating to secondmenu/secondpage. now when i return back to firstmenu/firstpage, the split-pane is getting hide. this is stopper for my application, can you help on this please. see the screenshot and code below.
firstmenu/firstpage:
liamdebeasi commentedon Jul 2, 2019
Thanks for the issue. I think this problem stems from the fact that we only allow 1 menu to be enabled at a time. If you want these two side panes to be always be open, I would recommend wrapping them in something other than
ion-menu.In your demo repo, I wrapped them each in a
divrather than anion-menuand the issue disappeared. Can you try this and let me know if it works for your use case?If you really need to use
ion-menu, I would recommend only having 1 instance of the menu.eduardoRoth commentedon Jul 12, 2019
Issue happens even if only using one
ion-menu; @liamdebeasi your quick fix works, if I replaceion-menutag with adivone, split pane is always shown.yogeshshsf commentedon Jul 17, 2019
@liamdebeasi thanks for you help, its much appreciated. it works perfect when you use div..
eduardoRoth commentedon Jul 24, 2019
When using
divtag instead ofion-menu; tagsion-contentandion-footerdon't work as expected.iamkinetic commentedon Aug 7, 2019
@liamdebeasi are you saying we should have no more than one menu in an application or we may run into problems even if only one of them is shown at one time?
7 remaining items
thomaux commentedon Apr 6, 2023
I fixed this by replacing the
<ion-menu>with adivas mentioned before. Then, in order to make<ion-header>and<ion-content>work properly inside that div, I appliedflex-direction: column;to the div. Hope this helps!cra1gs commentedon Apr 14, 2023
If you use this method, how does your menu toggle work on smaller screens? My burger menu will not appear, so you cannot access the menu.
thomaux commentedon Apr 14, 2023
@cra1gs this is how I ended up using the split-pane:
The basic premise of the above is: when an item is selected AND the screen is smaller than the SM breakpoint (=576px), disable the split screen so the "menu" is not shown. In case no item is selected, only the menu is shown as the
whenproperty is set toxsand I've set the side minimum width to 100% for screen widths lower then the SM breakpointfix(menu) menus on the same side are not automatically disabled (#28269)
liamdebeasi commentedon Oct 17, 2023
Hi everyone,
Here is a dev build with a proposed fix if anyone is interested in testing:
7.5.1-dev.11697568647.1ac87d08Install Example:
npm install @ionic/[email protected]fix(menu): menu no longer disappears with multiple split panes (#28370)
liamdebeasi commentedon Oct 19, 2023
Thanks for the issue. This has been resolved via #28370, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to keep testing the dev build, and let me know if you run into any problems.
fix(menu): menu no longer disappears with multiple split panes (#28370)
ionitron-bot commentedon Nov 18, 2023
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.