From 1ed9af3d659d9b00946b1aaa4058a9887cdd3890 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 6 Feb 2024 22:00:03 +0100 Subject: [PATCH] [autocomplete] Avoid spread operator --- packages/mui-material/src/Autocomplete/Autocomplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.js b/packages/mui-material/src/Autocomplete/Autocomplete.js index 19f06b3825bf74..1be40792197f1a 100644 --- a/packages/mui-material/src/Autocomplete/Autocomplete.js +++ b/packages/mui-material/src/Autocomplete/Autocomplete.js @@ -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 ( -
  • +
  • {getOptionLabel(option)}
  • );