-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix admin left menu dynamic visibility #1157
Fix admin left menu dynamic visibility #1157
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1157 +/- ##
==========================================
Coverage 75.77% 75.77%
Complexity 2539 2539
==========================================
Files 130 130
Lines 6230 6230
==========================================
Hits 4721 4721
Misses 1509 1509
Continue to review full report at Codecov.
|
This visibility fix is unrelated with any current PRs! |
@ibelar PR is complete and fully working, please check and merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good now!
@ibelar it does fixed the original switching behaviour, but if default to on, the menu "flashes" between loads which degrades the UX. Can you fix this in server-side render? |
I have below code in my custom layout to control the state of navigation menu. It basically persists the state in the session. So basically adding the
|
@georgehristov it is not about persisting the state - it is about adding/removing |
I see now. I do not have this problem as I use routing where only the content area of the page is updated on page change. |
@georgehristov do you solve there a history? #1191 |
Yes, there is a browser history. I have not had problem with that. |
I am lost, you either reload the full page - and this issue is affecting you too - or you use JS to reload the inner component, but then need the history API. |
Fix issue intoduced in #1112. Visibility is controlled by
isMenuLeftVisible
prop and needs to be not always forced to visible.