[material-ui][joy-ui][base-ui][Autocompelte] Highlighted index is broken when inserting new item #41386
Labels
bug 🐛
Something doesn't work
component: autocomplete
This is the name of the generic UI component, not the React module!
package: base-ui
Specific to @mui/base
package: joy-ui
Specific to @mui/joy
package: material-ui
Specific to @mui/material
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/mui-autocomplete-bug-94thpd?file=%2Fsrc%2FApp.js
Steps:
Current behavior
The last item (The Shawshank Redemption) is now selected
Expected behavior
The first item (The Godfather) should be selected
Context
No response
Your environment
npx @mui/envinfo
Search keywords: autocomplete
The text was updated successfully, but these errors were encountered: