Skip to content

FIX: check if sidebar hidden and remove scrollLock when hiding hamburger menu #32775

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

Merged
merged 1 commit into from
May 16, 2025

Conversation

awesomerobot
Copy link
Member

@awesomerobot awesomerobot commented May 16, 2025

Reported here: https://meta.discourse.org/t/dashboard-freezes-until-sidebar-is-opened/366402

This is a follow-up to #32651, when navigating from the homepage to admin the hamburger gets force-hidden because we switch from the dropdown to the sidebar nav but the scrollLock was unintentionally left behind.

This makes sure we're only messing with hamburger state when the sidebar is hidden (with {{hideApplicationSidebar}}) and also removes the scroll lock when the hamburger is force-hidden.

@awesomerobot awesomerobot merged commit c293fe0 into main May 16, 2025
18 checks passed
@awesomerobot awesomerobot deleted the fix-lock-hamburger branch May 16, 2025 19:30
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/dashboard-freezes-until-sidebar-is-opened/366402/2

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/daily-summary-9pm-utc/291850/506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants