Skip to content

Commit

Permalink
[autocomplete] Avoid spread operator (#40968)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 8, 2024
1 parent 856cf5e commit 3cd55d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/Autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ const Autocomplete = React.forwardRef(function Autocomplete(inProps, ref) {

const renderGroup = renderGroupProp || defaultRenderGroup;
const defaultRenderOption = (props2, option) => {
const { key, ...otherProps } = props2;
// Need to clearly apply key because of https://github.com/vercel/next.js/issues/55642
return (
<li key={key} {...otherProps}>
<li {...props2} key={props2.key}>
{getOptionLabel(option)}
</li>
);
Expand Down

0 comments on commit 3cd55d3

Please sign in to comment.