@entur/dropdown 6.0.3-RC.3 → 6.0.3-RC.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.
- package/dist/dropdown.cjs.development.js +12 -9
- 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 +12 -9
- package/dist/dropdown.esm.js.map +1 -1
- package/dist/styles.css +98 -98
- package/package.json +2 -2
|
@@ -1888,9 +1888,12 @@ var SearchableDropdown = function SearchableDropdown(_ref) {
|
|
|
1888
1888
|
},
|
|
1889
1889
|
onKeyDown: function onKeyDown(e) {
|
|
1890
1890
|
if (selectOnTab && isOpen && e.key === 'Tab') onChange == null ? void 0 : onChange(listItems[highlightedIndex]);
|
|
1891
|
-
}
|
|
1891
|
+
}
|
|
1892
|
+
}, {
|
|
1893
|
+
suppressRefError: true
|
|
1894
|
+
}), {
|
|
1892
1895
|
ref: inputRef
|
|
1893
|
-
}))
|
|
1896
|
+
})), React.createElement(DropdownList, {
|
|
1894
1897
|
ariaLabelChosenSingular: ariaLabelChosenSingular,
|
|
1895
1898
|
ariaLabelSelectedItem: ariaLabelSelectedItem,
|
|
1896
1899
|
getItemProps: getItemProps,
|
|
@@ -2267,9 +2270,12 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
2267
2270
|
}
|
|
2268
2271
|
}, getDropdownProps({
|
|
2269
2272
|
preventKeyAction: isOpen,
|
|
2270
|
-
value: inputValue != null ? inputValue : EMPTY_INPUT
|
|
2273
|
+
value: inputValue != null ? inputValue : EMPTY_INPUT
|
|
2274
|
+
}, {
|
|
2275
|
+
suppressRefError: true
|
|
2276
|
+
}))), {
|
|
2271
2277
|
ref: inputRef
|
|
2272
|
-
})))
|
|
2278
|
+
}))), React.createElement(DropdownList, {
|
|
2273
2279
|
ariaLabelChosenSingular: ariaLabelChosenSingular,
|
|
2274
2280
|
ariaLabelSelectedItem: ariaLabelSelectedItem,
|
|
2275
2281
|
getItemProps: getItemProps,
|
|
@@ -2419,12 +2425,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
2419
2425
|
onChange == null ? void 0 : onChange(highlitedItem);
|
|
2420
2426
|
}
|
|
2421
2427
|
}
|
|
2422
|
-
}
|
|
2423
|
-
}, {
|
|
2424
|
-
suppressRefError: true
|
|
2425
|
-
}), {
|
|
2428
|
+
},
|
|
2426
2429
|
ref: toggleButtonRef
|
|
2427
|
-
}), (_ref3 = (_selectedItem$label = selectedItem == null ? void 0 : selectedItem.label) != null ? _selectedItem$label : React.createElement("div", {
|
|
2430
|
+
})), (_ref3 = (_selectedItem$label = selectedItem == null ? void 0 : selectedItem.label) != null ? _selectedItem$label : React.createElement("div", {
|
|
2428
2431
|
className: classNames('eds-dropdown__selected-item__placeholder', {
|
|
2429
2432
|
'eds-dropdown__selected-item__placeholder--readonly': readOnly
|
|
2430
2433
|
})
|