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 in first split pane is not expanded automatically if there is a second split pane nested inside it #22341
The layout is correct, although the menu in the first split pane is not expanded (able to toggle it with the menu toggle button). Depending on the when clause in the second split pane, it works after resizing, so that split pane 1 is triggered
Expected behavior:
The menu should be expanded when loading the site and not depend on any other split panes.
Steps to reproduce:
Add a split pane with a menu and content inside it
changed the title [-]bug: menu in first split pane is not expanded automatically if there is a second split pane on the page[/-][+]bug: menu in first split pane is not expanded automatically if there is a second split pane nested inside it[/+]on Feb 1, 2022
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
kdankert commentedon Oct 17, 2020
I figured out that this is related to the menu component reacting to every split pane update event and not to those it's a child of.
averyrousseau commentedon Feb 1, 2022
Thanks for the issue! I wanted to circle back to this. I'm able to replicate in core, even on Ionic 6.
While testing, I modified the code around the nested split pane slightly to make the two split panes easier to see:
I can also confirm this behavior:
Here's a screencast using
when="sm": https://user-images.githubusercontent.com/90629384/152019177-ce99e1dc-14d1-42b1-8900-81d63b34f5a7.mp4And another with the
whenprop removed -- note that the menu doesn't stay open properly on resize: https://user-images.githubusercontent.com/90629384/152019192-fba0fa77-7605-439c-b1c7-10e3e07c3fae.mp4I also noticed that the
menu-buttondoesn't refresh properly either (the button is visible when it should be hidden on larger screen widths).[-]bug: menu in first split pane is not expanded automatically if there is a second split pane on the page[/-][+]bug: menu in first split pane is not expanded automatically if there is a second split pane nested inside it[/+]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.