Skip to content

[6.x] Support taggable comboboxes when multiple is false - #15064

Merged
jasonvarga merged 2 commits into
6.xfrom
combobox-single-taggable
Aug 19, 2026
Merged

[6.x] Support taggable comboboxes when multiple is false#15064
jasonvarga merged 2 commits into
6.xfrom
combobox-single-taggable

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where the Combobox component did not support adding new options (via the taggable prop) when multiple is false.

This was happening because the taggable handlers assumed the model value was an array: pressing enter committed an array into the string model, the duplicate check used .includes() (which does a substring match on strings), and pasting was hijacked to split the pasted text into tags.

This PR fixes it by committing the raw string when multiple is false, comparing against the current value with strict equality, closing the dropdown after committing, and leaving paste alone for single selects.

This PR also adds interaction tests covering the new single-select behaviour, along with the existing multiple behaviour, to protect against regressions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit ea6208f into 6.xAug 19, 2026
64 checks passed
@jasonvarga
jasonvarga deleted the combobox-single-taggable branch August 19, 2026 22:41
Sign up for freeto 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

@duncanmcclean@jasonvarga