Skip to content

Commit

Permalink
[docs] Fix autocomplete render group key warning in the demo (#36025)
Browse files Browse the repository at this point in the history
Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
chuanyu0201 and ZeeshanTamboli authored Feb 2, 2023
1 parent 807f635 commit a1b591a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/data/material/components/autocomplete/RenderGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function RenderGroup() {
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="With categories" />}
renderGroup={(params) => (
<li>
<li key={params.key}>
<GroupHeader>{params.group}</GroupHeader>
<GroupItems>{params.children}</GroupItems>
</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/components/autocomplete/RenderGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function RenderGroup() {
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="With categories" />}
renderGroup={(params) => (
<li>
<li key={params.key}>
<GroupHeader>{params.group}</GroupHeader>
<GroupItems>{params.children}</GroupItems>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
sx={{ width: 300 }}
renderInput={(params) => <TextField {...params} label="With categories" />}
renderGroup={(params) => (
<li>
<li key={params.key}>
<GroupHeader>{params.group}</GroupHeader>
<GroupItems>{params.children}</GroupItems>
</li>
Expand Down

0 comments on commit a1b591a

Please sign in to comment.