@entur/dropdown 6.0.3-RC.0 → 6.0.3-RC.2

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.
@@ -1235,7 +1235,7 @@ function SelectedItemsLabel(items) {
1235
1235
  }).toString() : items.length + " elementer valgt";
1236
1236
  }
1237
1237
 
1238
- var _excluded$5 = ["ariaLabelChosenSingular", "ariaLabelSelectedItem", "getItemProps", "getMenuProps", "inputValue", "isOpen", "highlightedIndex", "listItems", "listStyle", "listRef", "loading", "loadingText", "noMatchesText", "selectAllCheckboxState", "selectAllItem", "selectedItems", "showSelectAllInList"];
1238
+ var _excluded$5 = ["ariaLabelChosenSingular", "ariaLabelSelectedItem", "getItemProps", "getMenuProps", "inputValue", "isOpen", "highlightedIndex", "listItems", "listStyle", "setListRef", "loading", "loadingText", "noMatchesText", "selectAllCheckboxState", "selectAllItem", "selectedItems", "showSelectAllInList"];
1239
1239
  var DropdownList = function DropdownList(_ref) {
1240
1240
  var _listItems$;
1241
1241
  var _ref$ariaLabelChosenS = _ref.ariaLabelChosenSingular,
@@ -1248,7 +1248,7 @@ var DropdownList = function DropdownList(_ref) {
1248
1248
  highlightedIndex = _ref.highlightedIndex,
1249
1249
  listItems = _ref.listItems,
1250
1250
  listStyle = _ref.listStyle,
1251
- listRef = _ref.listRef,
1251
+ setListRef = _ref.setListRef,
1252
1252
  _ref$loading = _ref.loading,
1253
1253
  loading = _ref$loading === void 0 ? false : _ref$loading,
1254
1254
  _ref$loadingText = _ref.loadingText,
@@ -1335,7 +1335,7 @@ var DropdownList = function DropdownList(_ref) {
1335
1335
  }, {
1336
1336
  suppressRefError: true
1337
1337
  }), {
1338
- ref: mergeRefs(listRef, getMenuProps().ref),
1338
+ ref: setListRef,
1339
1339
  className: "eds-dropdown__list",
1340
1340
  style: _extends({
1341
1341
  display: isOpen ? 'inline-block' : 'none'
@@ -1895,7 +1895,7 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
1895
1895
  isOpen: isOpen,
1896
1896
  listItems: listItems,
1897
1897
  listStyle: _extends({}, floatingStyles, listStyle),
1898
- listRef: refs.setFloating,
1898
+ setListRef: refs.setFloating,
1899
1899
  loading: loading,
1900
1900
  loadingText: loadingText,
1901
1901
  noMatchesText: noMatchesText,
@@ -2265,7 +2265,7 @@ var MultiSelect = function MultiSelect(_ref) {
2265
2265
  preventKeyAction: isOpen,
2266
2266
  value: inputValue != null ? inputValue : EMPTY_INPUT,
2267
2267
  ref: inputRef
2268
- }))))), "; ;"), React.createElement(DropdownList, {
2268
+ })))))), React.createElement(DropdownList, {
2269
2269
  ariaLabelChosenSingular: ariaLabelChosenSingular,
2270
2270
  ariaLabelSelectedItem: ariaLabelSelectedItem,
2271
2271
  getItemProps: getItemProps,
@@ -2275,7 +2275,7 @@ var MultiSelect = function MultiSelect(_ref) {
2275
2275
  isOpen: isOpen,
2276
2276
  listItems: listItems,
2277
2277
  listStyle: _extends({}, floatingStyles, listStyle),
2278
- listRef: refs.setFloating,
2278
+ setListRef: refs.setFloating,
2279
2279
  loading: loading,
2280
2280
  loadingText: loadingText,
2281
2281
  noMatchesText: noMatchesText,
@@ -2430,7 +2430,7 @@ var Dropdown = function Dropdown(_ref) {
2430
2430
  isOpen: isOpen,
2431
2431
  listItems: normalizedItems,
2432
2432
  listStyle: _extends({}, floatingStyles, listStyle),
2433
- listRef: refs.setFloating,
2433
+ setListRef: refs.setFloating,
2434
2434
  loading: loading,
2435
2435
  loadingText: loadingText,
2436
2436
  selectedItems: selectedItem !== null ? [selectedItem] : []