[Autocomplete] useAutocomplete - Autocomplete input does not show selected values in multiple mode;inputValue
is empty when Autocomplete is in multiple mode.
#634
Labels
component: autocomplete
This is the name of the generic UI component, not the React module!
status: expected behavior
Does not imply the behavior is intended. Just that we know about it and can't work around it
Steps to reproduce
Link to live example: (required)
Steps:
useAutocomplete
hook frombase-ui
Demo can be seen in the linked codesandbox above
Current behavior
In an Autocomplete created with
useAutocomplete
hook with multiple mode enabled, the selected options are not rendered in the input field.Expected behavior
The selected options should be rendered in the input field of the autocomplete.
Context
From what I can tell, this is probably because in
resetInputValue
function withinuseAutocomplete.js
, the inputValue is set to "" whenmultiple
istrue
.Your environment
npx @mui/envinfo
Search keywords: useAutocomplete Autocomplete inputValue
The text was updated successfully, but these errors were encountered: