@adamjanicki/ui-extended 1.1.4 → 1.1.5

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.
@@ -65,7 +65,12 @@ var Autocomplete = function (props) {
65
65
  if (!remainOpenOnSelectOrEnter)
66
66
  closeMenu();
67
67
  };
68
- var closeMenu = function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur(); };
68
+ var closeMenu = function () {
69
+ var _a;
70
+ setOn(undefined);
71
+ setOpen(false);
72
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
73
+ };
69
74
  var openMenu = function () { return setOpen(true); };
70
75
  var handleKeys = function (_a) {
71
76
  var _b;
@@ -126,9 +131,6 @@ var Autocomplete = function (props) {
126
131
  else {
127
132
  focusInput();
128
133
  }
129
- }, onBlur: function () {
130
- setOn(undefined);
131
- setOpen(false);
132
134
  }, onClick: function () {
133
135
  if (!open) {
134
136
  openMenu();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamjanicki/ui-extended",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "More advanced UI components and hooks for React in TypeScript",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "react-dom": ">=18"
23
23
  },
24
24
  "dependencies": {
25
- "@adamjanicki/ui": "^1.5.8",
25
+ "@adamjanicki/ui": "^1.5.9",
26
26
  "@floating-ui/react": "^0.26.17"
27
27
  },
28
28
  "devDependencies": {