@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.
- package/dist/dropdown.cjs.development.js +3 -4
- package/dist/dropdown.cjs.development.js.map +1 -1
- package/dist/dropdown.cjs.production.min.js +1 -1
- package/dist/dropdown.cjs.production.min.js.map +1 -1
- package/dist/dropdown.esm.js +3 -4
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +103 -95
- package/package.json +9 -9
package/dist/dropdown.esm.js
CHANGED
|
@@ -887,7 +887,7 @@ debounceTimeout) {
|
|
|
887
887
|
if (itemsIsAFunction) {
|
|
888
888
|
debouncedFetchItems('');
|
|
889
889
|
}
|
|
890
|
-
}, [itemsIsAFunction]);
|
|
890
|
+
}, [itemsIsAFunction, itemsResolver]);
|
|
891
891
|
return {
|
|
892
892
|
items: normalizedItems,
|
|
893
893
|
loading: itemsIsAFunction ? loading : false,
|
|
@@ -1626,7 +1626,6 @@ var isVoiceOverClick = function isVoiceOverClick(clickEvent) {
|
|
|
1626
1626
|
var targetElementMiddleY = Math.floor(targetElementRect.y + targetElementRect.height / 2);
|
|
1627
1627
|
var clickPositionX = clickEvent.clientX;
|
|
1628
1628
|
var clickPositionY = clickEvent.clientY;
|
|
1629
|
-
console.log('targetX:', targetElementMiddleX, 'targetY:', targetElementMiddleY, 'clickX:', clickPositionX, 'clickY:', clickPositionY);
|
|
1630
1629
|
return Math.abs(targetElementMiddleX - clickPositionX) <= 1 && Math.abs(targetElementMiddleY - clickPositionY) <= 1;
|
|
1631
1630
|
};
|
|
1632
1631
|
/* end a11y utils */
|
|
@@ -1813,7 +1812,7 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
|
|
|
1813
1812
|
className: classNames('eds-dropdown__wrapper', className),
|
|
1814
1813
|
style: style
|
|
1815
1814
|
}, React.createElement(BaseFormControl, _extends({
|
|
1816
|
-
className:
|
|
1815
|
+
className: classNames('eds-dropdown', 'eds-dropdown--searchable'),
|
|
1817
1816
|
disabled: disabled,
|
|
1818
1817
|
disableLabelAnimation: disableLabelAnimation,
|
|
1819
1818
|
feedback: feedback,
|
|
@@ -2181,7 +2180,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
2181
2180
|
onClear: handleOnClear,
|
|
2182
2181
|
getToggleButtonProps: getToggleButtonProps
|
|
2183
2182
|
}),
|
|
2184
|
-
className:
|
|
2183
|
+
className: classNames('eds-dropdown', 'eds-dropdown--multiselect'),
|
|
2185
2184
|
disabled: disabled,
|
|
2186
2185
|
feedback: feedback,
|
|
2187
2186
|
isFilled: hasSelectedItems || inputValue !== EMPTY_INPUT,
|