Skip to content

fix(sidebar): close mobile sidebar on navigation#4341

Merged
Siumauricio merged 1 commit intocanaryfrom
fix/sidebar-mobile-close-on-navigation
May 1, 2026
Merged

fix(sidebar): close mobile sidebar on navigation#4341
Siumauricio merged 1 commit intocanaryfrom
fix/sidebar-mobile-close-on-navigation

Conversation

@Siumauricio
Copy link
Copy Markdown
Contributor

Summary

  • Adds a MobileCloser component inside SidebarProvider that listens to pathname changes and calls setOpenMobile(false) when on mobile
  • Fixes the sidebar staying open after navigating to a different page on mobile devices

Closes #4340

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 1, 2026
@Siumauricio Siumauricio merged commit 9b416b3 into canary May 1, 2026
5 checks passed
@Siumauricio Siumauricio deleted the fix/sidebar-mobile-close-on-navigation branch May 1, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar does not close on navigation in mobile

1 participant