intelicoreact 0.2.23 → 0.2.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.
@@ -227,20 +227,17 @@ var Dropdown = function Dropdown(_ref) {
227
227
  }),
228
228
  ref: dropdownRef,
229
229
  onKeyDown: function onKeyDown(e) {
230
- if (e.code !== 'Tab') return false;
230
+ if (!['Tab', 'Enter'].includes(e.code)) return false;
231
231
  setIsOpen(false);
232
232
  },
233
233
  onKeyUp: function onKeyUp(e) {
234
- if (e.code !== 'Tab') return false;
234
+ if (!['Tab', 'Enter'].includes(e.code)) return false;
235
235
  setIsOpen(true);
236
236
  }
237
237
  }, /*#__PURE__*/_react.default.createElement("button", {
238
238
  className: "".concat(RC, "__trigger input__wrap ").concat(isOpen ? 'input__wrap--focus' : '', " ").concat(!value ? 'placeholder' : '', " ").concat(error ? 'error' : ''),
239
239
  onClick: function onClick() {
240
240
  return !isSearchable ? setIsOpen(!isOpen) : null;
241
- },
242
- onFocus: function onFocus() {
243
- return !isSearchable ? setIsOpen(true) : null;
244
241
  }
245
242
  }, isSearchable ? /*#__PURE__*/_react.default.createElement("input", {
246
243
  className: "".concat(RC, "__input"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [