Skip to content

fix(selector.js): dropdown open/close flicker on click after browser window is refocused - #6552

Open
peterjunpark wants to merge 1 commit into
developfrom
fix-dropdown-flicker-on-refocus
Open

peterjunpark wants to merge 1 commit into
developfrom
fix-dropdown-flicker-on-refocus

Conversation

@peterjunpark

@peterjunpark peterjunpark commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Motivation

ISSUE ID: AIROCDOC-4124

Technical Details

When the browser window loses focus, "blur" any focused TomSelect control.

This prevents the browser from automatically restoring focus to the dropdown on window
refocus, which would trigger openOnFocus and cause the dropdown to
flicker open unexpectedly due to registering the first click as a close.

Note: "blur" just means the opposite of focus in browser lingo... not a visual blur. https://developer.mozilla.org/en-US/docs/Web/API/Window/blur_event

Test Plan

Test Result

Submission Checklist

@peterjunpark
peterjunpark requested a review from a team as a code owner July 29, 2026 20:00
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.

1 participant