Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Autocomplete search reset issue #113

Merged

Conversation

st-angelo
Copy link
Contributor

Fixed an Autocompete issue where the value of the search input would reset instantly on change when simpleValue and isMultiSelection are enabled.

This happened in a useEffect in mui-base's useAutocomplete where the value of the search input was reset if the input was focused AND the value of the Autocomplete changed meanwhile. Since the value was NOT memoized in rocket, this triggered the reset.

The value is now memoized.

@st-angelo st-angelo linked an issue Jun 14, 2024 that may be closed by this pull request
1 task
@alexandra-c alexandra-c merged commit c0b2eeb into master Jun 25, 2024
1 check passed
@alexandra-c alexandra-c deleted the fix-autocomplete-simpleValue-multiSelect-search-reset branch June 25, 2024 06:56
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.

Can't search Autocomplete when isMultiSelection and simpleValue are enabled
2 participants