@entur/dropdown 5.0.2 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1311,9 +1311,9 @@ var DropdownList = function DropdownList(_ref) {
1311
1311
  tabIndex: -1
1312
1312
  }), React.createElement("span", {
1313
1313
  className: "eds-dropdown__list__item__text"
1314
- }, item.label, React.createElement(VisuallyHidden, null, isItemSelected(item) ? ariaLabelSelectedItem : '')), item.icons && React.createElement("span", null, item.icons.map(function (Icon, index) {
1314
+ }, item.label, React.createElement(VisuallyHidden, null, isItemSelected(item) ? ariaLabelSelectedItem : '')), item.icons && React.createElement("span", null, item.icons.map(function (Icon) {
1315
1315
  return React.createElement(Icon, {
1316
- key: index,
1316
+ key: Icon.displayName,
1317
1317
  inline: true,
1318
1318
  className: "eds-dropdown__list__item__icon"
1319
1319
  });
@@ -1330,14 +1330,14 @@ var DropdownList = function DropdownList(_ref) {
1330
1330
  var itemIsSelectAll = item.value === (selectAllItem == null ? void 0 : selectAllItem.value);
1331
1331
  if (itemIsSelectAll && listItems.length <= 2) return null;
1332
1332
  return React.createElement("li", _extends({
1333
- key: item.label,
1333
+ key: item.label + item.value,
1334
1334
  className: classNames('eds-dropdown__list__item', {
1335
1335
  'eds-dropdown__list__item--select-all': itemIsSelectAll,
1336
1336
  'eds-dropdown__list__item--highlighted': highlightedIndex === index,
1337
1337
  'eds-dropdown__list__item--selected': !isMultiselect && isItemSelected(item)
1338
1338
  })
1339
1339
  }, getItemProps({
1340
- key: item.label,
1340
+ key: item.label + item.value,
1341
1341
  item: item,
1342
1342
  index: index
1343
1343
  })), itemIsSelectAll ? selectAllListItemContent() : listItemContent(item));