Checking the example of autocomplete + virtualization. The groups are supposed to be the first letter of the item but they seem to be kind of random. See gif:

When you open the autocomplete, first group seems to always be 0, but then subsequent groups seem to be off
Item groups are named correctly
see gif
| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.9.11 |
diff --git a/docs/src/pages/components/autocomplete/Virtualize.tsx b/docs/src/pages/components/autocomplete/Virtualize.tsx
index 2785133cb..92d571a60 100644
--- a/docs/src/pages/components/autocomplete/Virtualize.tsx
+++ b/docs/src/pages/components/autocomplete/Virtualize.tsx
@@ -110,7 +110,7 @@ const OPTIONS = Array.from(new Array(10000))
const renderGroup = (params: RenderGroupParams) => [
<ListSubheader key={params.key} component="div">
- {params.key}
+ {params.group}
</ListSubheader>,
params.children,
];
@Janpot Well spotted, we have made a change to the args of renderGroup recently. We need to fix it :).
@oliviertassinari off-topic, what's your workflow for generating these diffs?
@Janpot I edit them in my locale env, check that it works, run git diff, copy, reset hard to master.
I would love to submit a PR for this issue
@Uneetpatel7 Feel free to :)
Most helpful comment
I would love to submit a PR for this issue