-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: In a Sidemenu app, menu doesn't expand when direction of app is changed from LTR to RTL in desktop and tablet. #22116
Comments
Thanks for the issue! This issue has been labeled as Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. For a guide on how to create a good reproduction, see our Contributing Guide. |
I have created two simple Sidemenu by Ionic 5 in Stackblitz as follows:
Please check them and let me know if you need further info. |
I found a workaround with 2 Sidemenus which is controlled by ngIf to change menus from LTR to RTL or vice versa. |
this bug occurs in every new ionic version3,4 and now in 5. what ionic team is doing? |
I have the same problem still not fixed until now |
Thanks for the issue. I am going to close this as a duplicate of #19489. The issue here is that the animation that shows/hides the menu is a) not RTL-aware and b) not reactive, so changing LTR/RTL modes on the fly will not update the animation. |
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. |
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
When I change direction of app from LTR to RTL in runtime, Sidemenu doesn't expand on desktop and tablet mode.
on the other hand, Menu is changed but is not expanded.
Expected behavior:
In ionic 4 this behavior works fine for me but on Ionic 5, Sidemenu is changed but , it doesn't expand, so when I change direction form LTR to RTL or vice versa, Sidemenu will be closed.
But if the app reloads, side menu works fine. I expect the Sidemenu be expanded when app direction be changed at runtime.
Steps to reproduce:
Simply, I create an ionic 5 project for a Sidemeu app and I create a method to change of app direction by button click.
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: