Skip to content

[autocomplete] - resetInput when value reference changes #35533

Description

@omerp-explorium

const valueChange = value !== prevValue.current;

Sometimes the value is an array (When autocomplete is multiple), So if after render the value does not referentially the same, the autocomplete will fire reset event.
For example

<Autocomplete value={values.filter(x => isSelected(x.value))}

The Bug/question is, shouldn't we check if the reference is the same for each item in case of multiple?

Thanks

Metadata

Metadata

Assignees

Labels

docsImprovements or additions to the documentation.scope: autocompleteChanges related to the autocomplete. This includes ComboBox.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions