@entur/dropdown 6.0.3-beta.2 → 6.0.3-beta.3

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.
@@ -1335,9 +1335,11 @@ var DropdownList = function DropdownList(_ref) {
1335
1335
  return (
1336
1336
  // use popover from @entur/tooltip when that package upgrades to floating-ui
1337
1337
  React.createElement("ul", _extends({}, getMenuProps({
1338
- 'aria-multiselectable': isMultiselect,
1339
- ref: listRef
1338
+ 'aria-multiselectable': isMultiselect
1339
+ }, {
1340
+ suppressRefError: true
1340
1341
  }), {
1342
+ ref: listRef,
1341
1343
  className: "eds-dropdown__list",
1342
1344
  style: _extends({
1343
1345
  display: isOpen ? 'inline-block' : 'none'
@@ -1889,9 +1891,12 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
1889
1891
  },
1890
1892
  onKeyDown: function onKeyDown(e) {
1891
1893
  if (selectOnTab && isOpen && e.key === 'Tab') onChange == null ? void 0 : onChange(listItems[highlightedIndex]);
1892
- },
1894
+ }
1895
+ }, {
1896
+ suppressRefError: true
1897
+ }), {
1893
1898
  ref: inputRef
1894
- }))), React.createElement(DropdownList, {
1899
+ })), React.createElement(DropdownList, {
1895
1900
  ariaLabelChosenSingular: ariaLabelChosenSingular,
1896
1901
  ariaLabelSelectedItem: ariaLabelSelectedItem,
1897
1902
  getItemProps: getItemProps,
@@ -2273,9 +2278,12 @@ var MultiSelect = function MultiSelect(_ref) {
2273
2278
  }
2274
2279
  }, getDropdownProps({
2275
2280
  preventKeyAction: isOpen,
2276
- ref: inputRef,
2277
2281
  value: inputValue != null ? inputValue : EMPTY_INPUT
2278
- })))))), React.createElement(DropdownList, {
2282
+ })), {
2283
+ suppressRefError: true
2284
+ }), {
2285
+ ref: inputRef
2286
+ }))), React.createElement(DropdownList, {
2279
2287
  ariaLabelChosenSingular: ariaLabelChosenSingular,
2280
2288
  ariaLabelSelectedItem: ariaLabelSelectedItem,
2281
2289
  getItemProps: getItemProps,
@@ -2425,9 +2433,12 @@ var Dropdown = function Dropdown(_ref) {
2425
2433
  onChange == null ? void 0 : onChange(highlitedItem);
2426
2434
  }
2427
2435
  }
2428
- },
2436
+ }
2437
+ }, {
2438
+ suppressRefError: true
2439
+ }), {
2429
2440
  ref: toggleButtonRef
2430
- })), (_ref3 = (_selectedItem$label = selectedItem == null ? void 0 : selectedItem.label) != null ? _selectedItem$label : React.createElement("div", {
2441
+ }), (_ref3 = (_selectedItem$label = selectedItem == null ? void 0 : selectedItem.label) != null ? _selectedItem$label : React.createElement("div", {
2431
2442
  className: classNames('eds-dropdown__selected-item__placeholder', {
2432
2443
  'eds-dropdown__selected-item__placeholder--readonly': readOnly
2433
2444
  })