Skip to content

Conversation

@gianluca-moro
Copy link
Contributor

@gianluca-moro gianluca-moro commented Nov 10, 2025

Fixes #19075

The current implementation of get optionValueSelected() does not make sense since why would you set optionValue if the value is a string? The optionValue property only really makes sense for object values.
Therefore, we change the logical AND to a OR to solve the issue. Now, optionLabel is also applied correctly to the selected item if the value is a string.

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.

[AutoComplete] optionLabel not applied to selected item if suggestions are strings

1 participant