Skip to content

fix(fuselage): prevent MultiSelect dropdown from reopening on toggle …#2046

Open
SheinRG wants to merge 1 commit into
RocketChat:mainfrom
SheinRG:fix/multiselect-toggle-reopen
Open

fix(fuselage): prevent MultiSelect dropdown from reopening on toggle …#2046
SheinRG wants to merge 1 commit into
RocketChat:mainfrom
SheinRG:fix/multiselect-toggle-reopen

Conversation

@SheinRG

@SheinRG SheinRG commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Clicking the toggle of an open MultiSelect blurred the anchor first, firing the debounced hide(), which flushed before the trailing click. The click handler then read the already-HIDDEN visible state and re-opened the dropdown. Toggle now keys off the self-managed focus-visible class instead, matching SelectLegacy.

Closes #1869

This is a pull request template, you do not need to uncomment or remove the comments, they won't show up in the PR text.

Proposed changes (including videos or screenshots)

Issue(s)

Further comments

…click

Clicking the toggle of an open MultiSelect blurred the anchor first, firing
the debounced `hide()`, which flushed before the trailing `click`. The click
handler then read the already-HIDDEN `visible` state and re-opened the
dropdown. Toggle now keys off the self-managed `focus-visible` class instead,
matching SelectLegacy.

Closes RocketChat#1869

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e25505e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@rocket.chat/fuselage Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@CLAassistant

CLAassistant commented Jun 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MultiSelect DropDown: Dropdown reopens when ever the close toggle is clicked

2 participants