# Collapsed sections in mobile sidebar don’t expand when changing views

**URL:** https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996
**Category:** Bug
**Tags:** sidebar
**Created:** [May 15, 2023, 6:09am UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996 "2023-05-15T06:09:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 15, 2023, 6:09am UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/1 "2023-05-15T06:09:04Z")

</div>

Collapsed sections in sidebar drop down mode in mobile view don’t expand when you go back to desktop view. while this isn’t a big deal, i tend to switch views a lot and i don’t think that is expected behavior. one has to switch views back to mobile and expand the collapsed sections before switching to desktop. i guess because the drop down navigator sidebar doesn’t have collapsing/ expanding sections like the sliding one. desktop view button probably needs a navigation menu section expander code added to it.

repro:

1. set `navigation_menu` to header dropdown
2. go to mobile view and collapse menu sections
3. switch to desktop view and try navigator menu

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 15, 2023, 4:30pm UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/2 "2023-05-15T16:30:56Z")

</div>

I could repro the issue 👍

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 16, 2023, 6:05am UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/3 "2023-05-16T06:05:14Z")

</div>

This is a great catch.

We need to build an override here @awesomerobot / @tgxworld so we never have anything collapsed when stuff is in hamburger mode.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 17, 2023, 12:29am UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/4 "2023-05-17T00:29:54Z")

</div>

i’m going to move it from drop down to sidebar on my forum. i like that it is more similar to the mobile view that way. i think my users will grow to like it, especially with the manually expanding and collapsing sections and the menu itself. i think the desktop users (of which i have many) will like that it can stay expanded.

after using the navigation menu in drop down hamburger mode for awhile i personally much prefer the sideburger.

i know some of my older users will complain at first but i can always blame Discourse lol 😅

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [May 17, 2023, 2:10am UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/5 "2023-05-17T02:10:20Z")

</div>

Thank you for the bug report here @Lilly

I’ve pushed a fix for this in

[https://github.com/discourse/discourse/pull/21604](https://github.com/discourse/discourse/pull/21604)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [June 1, 2023, 12:00am UTC](https://meta.discourse.org/t/collapsed-sections-in-mobile-sidebar-don-t-expand-when-changing-views/264996/6 "2023-06-01T00:00:52Z")

</div>

This topic was automatically closed after 14 days. New replies are no longer allowed.
