RocketChat / RocketChat/Rocket.Chat

"Create Direct Message" modal does not close when clicking outside and obstructs "Create" button

Open
#35,375 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

When using the "Create Direct Message" modal, the dropdown for selecting users does not close when clicking outside of it. Additionally, if there are many suggested users, the dropdown obstructs the "Create" button, making it difficult to proceed. The dropdown does not adjust its position (dropup) when there's insufficient space below.

Steps to Reproduce

Go to the "Direct Messages" section in Rocket.Chat.

Click on the "pencil" icon to create a new direct message.

Click on the user selection input field to open the dropdown.

Attempt to click outside the dropdown.

Expected Behavior

Clicking outside the dropdown should close it.

The dropdown should adjust its position (dropup) when there's not enough space below, ensuring it doesn't obstruct the "Create" button.

Before

Watch the video preview: Google Drive Video

After

Watch the video preview: Google Drive Video

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

Start in Rocket.Chat's Direct Messages section and reproduce the issue by opening the "Create Direct Message" modal and its user-selection dropdown. Check the dropdown's outside-click behavior and its placement when space below is limited. Done means it closes when clicking outside and moves above the input without obstructing the "Create" button.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.