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: SplitPane not working when Menu is wrapped in a Component #20681
The problem is that the ::slotted pseudo-element only works on slotted top-level nodes. Since the top level node is your wrapped-menu component, the styles will not get applied.
hmm, i copied the css-classes applied to the ion-menu when it is not wrapped to the wrapped ion-menu but it still not showing.
I guess there must be more into showing the menu but only css-classes (styles) ?
is it really only css classes handling the menu show/hide state ?
This bug is still happening as of 5.4.3. If you get rid of the<ion-split-pane> it works as advertised with <ion-menu> wrapped in its own component, e.g., <my-side-menu>
Bug is still there in "@ionic/angular": "^6.1.4". Is there any update/progress on this subject? It is impossible to wrap split-pane/menu logic in separate components
Thanks for the issue. This has been resolved via #28801, and a fix will be available in an upcoming release of Ionic Framework. We are shipping this in a major release of Ionic to de-risk some of the internal infrastructure changes we made to resolve this bug. Feel free to continue testing the dev build, and let me know if you run into any issues.
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
liamdebeasi commentedon Mar 3, 2020
Thanks for the issue. Can you provide a repo with the code required to reproduce this issue?
nickwinger commentedon Mar 5, 2020
Here is the repo where you can reproduce the issue:
https://github.com/nickwinger/ionicMenuBug
The menu should be permanent open on desktop but it isn't
liamdebeasi commentedon Mar 5, 2020
Thanks for the follow up. I need to dig into this more, but at first glance it does not look like this is possible. The
ion-menuin your app is missing these styles: https://github.com/ionic-team/ionic/blob/master/core/src/components/split-pane/split-pane.scss#L56-L61.The problem is that the
::slottedpseudo-element only works on slotted top-level nodes. Since the top level node is yourwrapped-menucomponent, the styles will not get applied.nickwinger commentedon Mar 6, 2020
hmm, i copied the css-classes applied to the ion-menu when it is not wrapped to the wrapped ion-menu but it still not showing.
I guess there must be more into showing the menu but only css-classes (styles) ?
is it really only css classes handling the menu show/hide state ?
9 remaining items
cnanders commentedon Nov 11, 2020
This bug is still happening as of 5.4.3. If you get rid of the
<ion-split-pane>it works as advertised with<ion-menu>wrapped in its own component, e.g.,<my-side-menu>jbagaresgaray commentedon Apr 7, 2021
This bug is still happening as of 5.6.3 for @ionic/vue
so the temporary work around is
MRDNZ commentedon Jan 3, 2023
Bug is still there in "@ionic/angular": "^6.1.4". Is there any update/progress on this subject? It is impossible to wrap split-pane/menu logic in separate components
timonjagi commentedon Apr 11, 2023
Facing the same issue on @ionic/angular ^6.5.3. Any update on this issue?
akshay-trex commentedon Apr 17, 2023
any update on the fix for this bug?
philjones88 commentedon Aug 23, 2023
Still in v7
ZenulAbidin commentedon Oct 7, 2023
Latest version of @ionic/angular ^7.4.3 still has this problem - using href instead of routerLink is an acceptable but not satisfactory workaround.
arrighidante commentedon Dec 21, 2023
Still failing in @ionic/angular7.6.1
liamdebeasi commentedon Jan 10, 2024
Hi everyone,
Here is a dev build if anyone is interested in testing a proposed fix:
7.6.2-dev.11704922151.1fd3369fInstall example:
Please note that this is an Ionic 8 build and is subject to the Ionic 8 breaking changes.
fix(menu): menu can be encapsulated in a component (#28801)
liamdebeasi commentedon Jan 15, 2024
Thanks for the issue. This has been resolved via #28801, and a fix will be available in an upcoming release of Ionic Framework. We are shipping this in a major release of Ionic to de-risk some of the internal infrastructure changes we made to resolve this bug. Feel free to continue testing the dev build, and let me know if you run into any issues.
ionitron-bot commentedon Feb 14, 2024
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.