Skip to content

Commit 31387e6

Browse files
authored
fix: Fixes virtual list duplicate keys issue (#4095)
1 parent 0a39fb6 commit 31387e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select/utils/render-options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const renderOptions = ({
9292
const optionId = props.id ?? `${idPrefix}-option-${index}`;
9393
return (
9494
<OptionGroup
95-
key={index}
95+
key={`group-${index}`}
9696
virtual={virtualItems?.[index] !== undefined}
9797
ariaLabelledby={optionId}
9898
ariaDisabled={props['aria-disabled']}

0 commit comments

Comments
 (0)