@ebay/ui-core-react 3.12.1 → 3.12.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.
|
@@ -221,7 +221,7 @@ var ListboxButton = function (_a) {
|
|
|
221
221
|
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: "dropdown" }))),
|
|
222
222
|
(expanded || optionsOpened) &&
|
|
223
223
|
react_1.default.createElement("div", { className: "listbox-button__listbox", ref: optionsParentContainerRef, style: { maxHeight: maxHeight } },
|
|
224
|
-
react_1.default.createElement("div", { className: "listbox-button__options", role: "listbox", tabIndex: 0, ref: optionsContainerRef, onKeyDown: function (e) { return onOptionContainerKeydown(e); },
|
|
224
|
+
react_1.default.createElement("div", { className: "listbox-button__options", role: "listbox", tabIndex: expanded ? 0 : -1, ref: optionsContainerRef, onKeyDown: function (e) { return onOptionContainerKeydown(e); },
|
|
225
225
|
// adding onMouseDown preventDefault b/c on IE the onClick event is not being fired on each
|
|
226
226
|
// option https://stackoverflow.com/questions/17769005/onclick-and-onblur-ordering-issue
|
|
227
227
|
onMouseDown: function (e) { return e.preventDefault(); }, onBlur: function () {
|