RocketChat / RocketChat/Rocket.Chat

[Bug]: Sidebar Closes but "Create New" Drawer Persists on Mobile View

Open
#35,710 1 comment 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

In the mobile view of the Rocket.Chat app, when the sidebar is opened and the "Create New" button is clicked, the "Create New" drawer component appears as expected. However, clicking anywhere outside these components (e.g., on the main screen) closes the sidebar but leaves the "Create New" drawer open. This inconsistent behavior disrupts the user experience, as both components should ideally close together when clicking outside.

To Reproduce

Steps to reproduce the behavior:

1.Open the Rocket.Chat app in mobile view (e.g., browser dev tools with mobile emulation or on a mobile device).
2.Tap the hamburger menu to open the sidebar.
3.Click the "Create New" button within the sidebar at the top to open the "Create New" drawer.
4.Click anywhere outside both components (e.g., on the main content area).
5.Observe that the sidebar closes, but the "Create New" drawer remains open.

Expected Behavior

Clicking outside the sidebar and "Create New" drawer in mobile view should close both components simultaneously, providing a consistent and intuitive navigation experience.

Actual Behavior

The sidebar closes, but the "Create New" drawer stays visible, requiring an additional action (e.g., clicking a close button or back) to dismiss it.
Environment

Am i working on this?
YES

https://github.com/user-attachments/assets/48d4ffef-2a55-4d0c-9608-b285dad72dfd

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

Reproduce the issue in the Rocket.Chat app using mobile emulation: open the sidebar, open Create New, then click the main content area. Trace the sidebar and Create New drawer outside-click handling; done means both components close together without requiring a second action.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
mobile
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.