Skip to content

poc(ui5-combobox): add trigger flag to selection-change event#13567

Draft
ndeshev wants to merge 1 commit into
mainfrom
poc/combobox-selection-trigger-flag
Draft

poc(ui5-combobox): add trigger flag to selection-change event#13567
ndeshev wants to merge 1 commit into
mainfrom
poc/combobox-selection-trigger-flag

Conversation

@ndeshev
Copy link
Copy Markdown
Contributor

@ndeshev ndeshev commented May 20, 2026

The selection-change event now includes a trigger property in its detail, allowing apps to distinguish between selection sources:

  • "typeahead" - auto-selection from typing
  • "click" - user clicked an item
  • "keyboard" - keyboard navigation (arrow keys, home, end, page up/down)

When enabled, typing does not auto-select matching items. Selection only occurs on explicit user action (Enter key, click, or keyboard navigation). This gives apps full control over when selection is applied.

noAutoSelection behavior:

Typing: no selection-change (typeahead doesn't select)
Arrow keys: selection-change fires (navigating selects items)
Enter: change event fires (confirms the selection)
Click: selection-change fires

JIRA: BGSOFUIRILA-4446

Related to #12727

The selection-change event now includes a `trigger` property in its detail,
allowing apps to distinguish between selection sources:
- "typeahead" - auto-selection from typing
- "click" - user clicked an item
- "keyboard" - keyboard navigation (arrow keys, home, end, page up/down)
@ui5-webcomponents-bot
Copy link
Copy Markdown
Collaborator

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview May 20, 2026 14:55 Inactive
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.

2 participants