Skip to content

[6.x] fix(combobox): handle object values in selectedOptions lookup#14452

Open
waldemar-p wants to merge 1 commit intostatamic:6.xfrom
waldemar-p:6.x
Open

[6.x] fix(combobox): handle object values in selectedOptions lookup#14452
waldemar-p wants to merge 1 commit intostatamic:6.xfrom
waldemar-p:6.x

Conversation

@waldemar-p
Copy link
Copy Markdown
Contributor

The selectedOptions computed property failed to find matching options when modelValue contained full option objects (e.g., {label, value}) instead of primitive values. This caused the #selected-option slot to receive fallback objects with incorrect labels.

Now properly extracts the optionValue from object-type values before performing the lookup, ensuring the full option object is returned to slot templates.

The selectedOptions computed property failed to find matching options when
modelValue contained full option objects (e.g., {label, value}) instead of
primitive values. This caused the #selected-option slot to receive fallback
objects with incorrect labels.

Now properly extracts the optionValue from object-type values before
performing the lookup, ensuring the full option object is returned to
slot templates.
@waldemar-p waldemar-p changed the title fix(combobox): handle object values in selectedOptions lookup [6.x] fix(combobox): handle object values in selectedOptions lookup Apr 7, 2026
@waldemar-p waldemar-p mentioned this pull request Apr 7, 2026
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