From 86823a8e6daca33149af372f69380c065d988b7d Mon Sep 17 00:00:00 2001 From: Neeraja Tokekar <30342188+tneeraja95@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:27:34 +0530 Subject: [PATCH] Fix: Dropdowmitem: Passing key directly without using spread --- components/lib/dropdown/DropdownItem.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/lib/dropdown/DropdownItem.js b/components/lib/dropdown/DropdownItem.js index 5aa59de96d..52f4d4d5a6 100644 --- a/components/lib/dropdown/DropdownItem.js +++ b/components/lib/dropdown/DropdownItem.js @@ -33,7 +33,6 @@ export const DropdownItem = React.memo((props) => { { id: `dropdownItem_${index}`, role: 'option', - key: props.label, className: classNames(option.className, cx('item', { selected, disabled, label, index, focusedOptionIndex, highlightOnSelect })), style: props.style, tabIndex: 0, @@ -80,7 +79,7 @@ export const DropdownItem = React.memo((props) => { }; return ( -
  • +
  • {checkmark && iconRenderer()} {content}