RocketChat / RocketChat/Rocket.Chat

Admin Users role filter checkboxes remain checked after removing selected roles

Open Beginner friendly
#41,495 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

When filtering users by role in Administration → Workspace → Users, removing a selected role from the filter chips does not immediately update the corresponding checkbox in the open dropdown.

The filter state is updated correctly, but the checkbox remains checked until the dropdown is closed and opened again, resulting in inconsistent UI feedback.

Steps to reproduce:
  1. Go to Administration → Workspace → Users.
  2. Open the Role filter dropdown.
  3. Select one or more roles.
  4. Without closing the dropdown, remove one of the selected role chips.
  5. Observe the checkbox for the removed role.
Expected behavior:

The checkbox should immediately become unchecked when its corresponding role is removed from the selected filters.

Actual behavior:

The selected role chip is removed, but the checkbox remains checked while the dropdown is open. The checkbox only reflects the correct state after closing and reopening the dropdown.

Screen recording:

https://github.com/user-attachments/assets/94acb720-aaa2-42d8-a605-4add3e5d7c62

Server Setup Information:
  • Version of Rocket.Chat Server: 8.7.0-develop
  • License Type: Community
  • Number of Users: Test environment
  • Operating System: Ubuntu (WSL2)
  • Deployment Method: Local development
  • Number of Running Instances: 1
  • DB Replicaset Oplog: N/A
  • NodeJS Version: 22.22.1
  • MongoDB Version: 7.0.16
Client Setup Information
  • Browser Version: Google Chrome
  • Operating System: Windows 10
Additional context

The issue occurs while the dropdown remains open. Closing and reopening the dropdown updates the checkbox state correctly.

Relevant logs:

No relevant server or browser errors were observed.

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 Administration → Workspace → Users and reproduce the issue by removing a selected role chip while the Role dropdown remains open. Trace the role filter and checkbox state from that UI entry point; done means the corresponding checkbox immediately becomes unchecked without closing the dropdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.