Skip to content

use mousedown for dropdown selection#366

Open
MaxLeiter wants to merge 1 commit into
yuku:mainfrom
MaxLeiter:fix-dropdown-mousedown
Open

use mousedown for dropdown selection#366
MaxLeiter wants to merge 1 commit into
yuku:mainfrom
MaxLeiter:fix-dropdown-mousedown

Conversation

@MaxLeiter
Copy link
Copy Markdown

@MaxLeiter MaxLeiter commented May 21, 2026

Fixes #353, likely fixes #361

As mentioned in #353, #350 switched the dropdown item listener from mousedown/touchstart to click. click fires after the editor has already blurred, so any consumer that hides the dropdown on blur tears down the <li> and removes the listener before click can be fired. On mobile this is consistent because tapping the item always yields focus.

This intentionally omits touchstart so the bug #350 was addressing is still fixed

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.

Firefox Android click event does not fires for the first time Mobile touch event is missed in new update

1 participant