Skip to content

Commit

Permalink
[autocomplete] Avoid spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 6, 2024
1 parent fe5a59e commit cf0decc
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 key={props2.key} {...props2}>
{getOptionLabel(option)}
</li>
);
Expand Down

0 comments on commit cf0decc

Please sign in to comment.