Skip to content

Commit baeb9d0

Browse files
authored
add comment back
1 parent db77c3e commit baeb9d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ra-ui-materialui/src/input/AutocompleteInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ If you provided a React element for the optionText prop, you must also provide t
635635

636636
const renderChips = (value, getProps: (args: { index: number }) => any) =>
637637
value.map((option, index) => {
638+
// We have to extract the key because react 19 does not allow to spread the key prop
638639
const { key, ...chipProps } = getProps({ index });
639640
// @ts-expect-error slotProps do not yet exist in MUI v5
640641
const mergedSlotProps = props.slotProps?.chip

0 commit comments

Comments
 (0)