[material-ui][Autocomplete] broke backward compatibility with loading state #41633
Labels
bug 🐛
Something doesn't work
component: autocomplete
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
regression
A bug, but worse
Steps to reproduce
Call the component like below.
Current behavior
When open the Autocomplete, the expand icon rotated, but no items display.
The case
loading && groupedOptions.length > 0
is not being handled in the current implementation.Expected behavior
Display options (former behavior) or loading message (I think it is more proper one).
Context
This change was introduced by #41300
Current behavior cause a problem with the code like below.
While
foo
is loaded andbar
is still loading, I expect the loading message to be displayed. However, it does not appear, and then all items are displayed afterbar
has loaded.Your environment
Search keywords: Autocomplete loading
The text was updated successfully, but these errors were encountered: