Skip to content

Fix Combobox search input cursor hijacking on Home and End keys - #43289

Closed
ShakilUrRehman21 wants to merge 2 commits into
twbs:mainfrom
ShakilUrRehman21:fix/combobox-search-input-home-end-keys
Closed

ShakilUrRehman21 wants to merge 2 commits into
twbs:mainfrom
ShakilUrRehman21:fix/combobox-search-input-home-end-keys

Conversation

@ShakilUrRehman21

Copy link
Copy Markdown
Contributor

Description

In Combobox, pressing Home or End inside .combobox-search-input unexpectedly moved focus to the first or last dropdown item instead of letting the user navigate their search query cursor.

This change adds an !isInput check in _handleMenuKeydown() for KEY_HOME and KEY_END, matching the behavior of standard search inputs.

Motivation and context

Fixes keyboard text navigation in the Combobox search input.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the contributing guide
  • My code follows the code style of this project
  • I have added tests that prove my fix is effective
  • All new and existing unit tests passed

@ShakilUrRehman21
ShakilUrRehman21 requested a review from a team as a code owner November 4, 2026 05:17
@julien-deramond julien-deramond added v6 v6, the main branch accessibility Keyboard, screen readers, contrast, ARIA bug Something does not work as documented js JavaScript or TypeScript sources and plugins labels Nov 4, 2026
@mdo mdo closed this in #43300 Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility Keyboard, screen readers, contrast, ARIA bug Something does not work as documented js JavaScript or TypeScript sources and plugins v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants