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
- onFocus: function onFocus() {
224
- return setIsOpen(true);
223
+ onKeyDown: function onKeyDown(e) {
224
+ if (e.code !== 'Tab') return false;
225
+ setIsOpen(false);
225
226
  },
226
- onBlur: function onBlur() {
227
- return setIsOpen(false);
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' : ''),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "fixes",
5
5
  "main": "dist/index.js",
6
6
  "files": ["dist/*", "node_modules/anme/*", "node_modules/moment/*", "node_modules/moment-timezone/*"],