intelicoreact 0.1.23 → 0.1.24
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.
|
@@ -220,11 +220,13 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
220
220
|
disabled: disabled
|
|
221
221
|
}),
|
|
222
222
|
ref: dropdownRef,
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
onKeyDown: function onKeyDown(e) {
|
|
224
|
+
if (e.code !== 'Tab') return false;
|
|
225
|
+
setIsOpen(false);
|
|
225
226
|
},
|
|
226
|
-
|
|
227
|
-
return
|
|
227
|
+
onKeyUp: function onKeyUp(e) {
|
|
228
|
+
if (e.code !== 'Tab') return false;
|
|
229
|
+
setIsOpen(true);
|
|
228
230
|
}
|
|
229
231
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
230
232
|
className: "".concat(RC, "__trigger input__wrap ").concat(isOpen ? 'input__wrap--focus' : '', " ").concat(!value ? 'placeholder' : '', " ").concat(error ? 'error' : ''),
|