RocketChat / RocketChat/Rocket.Chat

UI/UX bug : Navbar Menus Do Not Close Properly When Toggling Between Collapsed and Expanded States on Smaller Screens.

Open
#35,383 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When the screen size is reduced to a point where the navbar collapses into a burger menu, if user menu was open within the navbar should close as expected. However, when the navbar is expanded again—by toggling the burger menu—the previously opened Usermenu will remain open instead of resetting to a closed state. Additionally, clicking the toggle icons of every menu inside the navbar not just user menu to close these menus does not work reliably; the menus either fail to close or the toggle functionality breaks. This issue impacts the usability of the navbar, especially on smaller screens or during browser resizing but work perfectly when change the device to phone or mobile.

Steps to reproduce:
  1. Open the Rocket.Chat application in a desktop browser.
  2. Ensure the screen width is large enough to display the navbar fully expanded.
  3. Click on a navbar action button (e.g., Administration, Marketplace, or User Menu) to open its menu.
  4. Reduce the screen width until the navbar collapses into a burger menu.
  5. Observe that the open menu closes (this is expected).
  6. Expand the screen width again to revert the navbar to its expanded state.
  7. Notice that the previously opened menu remains open.
  8. Now also try to decrease the size until the open menu goes to the bottom.
  9. Now , Attempt to close the menu by clicking its toggle icon.

Expected behavior:

  • When the navbar collapses into a burger menu due to a reduced screen size, all open menus should not open again automatically when the navbar is opened again.

  • Clicking the toggle icons should consistently open and close the respective menus.

Actual behavior:
  • After collapsing and then expanding the navbar, the previously opened user menus remain open instead of being reset to a closed state.
  • The toggle icons do not function correctly, failing to close the menus reliably when the screen size is small but work perfectly in when different device is chosen in inspect widow.
Server Setup Information:
  • Version of Rocket.Chat Server: 7.4.0-develop
  • License Type:
  • Number of Users: 2
  • Operating System: Linux
  • Deployment Method: Cloned from github
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v22.11.0
  • MongoDB Version: 7.0.5 / wiredTiger (oplog Enabled)
Client Setup Information
  • Desktop App or Browser Version: Chrome
  • Operating System: Linux
Additional context

https://github.com/user-attachments/assets/5ba133b5-d5e0-408c-9be8-c13e9300b942

Relevant logs:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reproducing the navbar behavior in a desktop browser while resizing between expanded and collapsed states, then trace the navbar menu toggles. Done means menus stay closed after re-expansion and each toggle reliably opens and closes its menu at smaller widths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.