@entur/dropdown 5.1.0-beta.0 → 5.1.1-beta.0

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.
@@ -891,7 +891,7 @@ debounceTimeout) {
891
891
  if (itemsIsAFunction) {
892
892
  debouncedFetchItems('');
893
893
  }
894
- }, [itemsIsAFunction]);
894
+ }, [itemsIsAFunction, itemsResolver]);
895
895
  return {
896
896
  items: normalizedItems,
897
897
  loading: itemsIsAFunction ? loading : false,
@@ -1630,7 +1630,6 @@ var isVoiceOverClick = function isVoiceOverClick(clickEvent) {
1630
1630
  var targetElementMiddleY = Math.floor(targetElementRect.y + targetElementRect.height / 2);
1631
1631
  var clickPositionX = clickEvent.clientX;
1632
1632
  var clickPositionY = clickEvent.clientY;
1633
- console.log('targetX:', targetElementMiddleX, 'targetY:', targetElementMiddleY, 'clickX:', clickPositionX, 'clickY:', clickPositionY);
1634
1633
  return Math.abs(targetElementMiddleX - clickPositionX) <= 1 && Math.abs(targetElementMiddleY - clickPositionY) <= 1;
1635
1634
  };
1636
1635
  /* end a11y utils */
@@ -1817,7 +1816,7 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
1817
1816
  className: classNames('eds-dropdown__wrapper', className),
1818
1817
  style: style
1819
1818
  }, React.createElement(form.BaseFormControl, _extends({
1820
- className: "eds-dropdown",
1819
+ className: classNames('eds-dropdown', 'eds-dropdown--searchable'),
1821
1820
  disabled: disabled,
1822
1821
  disableLabelAnimation: disableLabelAnimation,
1823
1822
  feedback: feedback,
@@ -2185,7 +2184,7 @@ var MultiSelect = function MultiSelect(_ref) {
2185
2184
  onClear: handleOnClear,
2186
2185
  getToggleButtonProps: getToggleButtonProps
2187
2186
  }),
2188
- className: "eds-dropdown",
2187
+ className: classNames('eds-dropdown', 'eds-dropdown--multiselect'),
2189
2188
  disabled: disabled,
2190
2189
  feedback: feedback,
2191
2190
  isFilled: hasSelectedItems || inputValue !== EMPTY_INPUT,