@zag-js/combobox 1.3.0 → 1.3.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.
package/dist/index.js CHANGED
@@ -137,7 +137,8 @@ function connect(service, normalize) {
137
137
  getInputEl(scope)?.focus();
138
138
  },
139
139
  setOpen(nextOpen) {
140
- if (nextOpen === open) return;
140
+ const open2 = state.hasTag("open");
141
+ if (open2 === nextOpen) return;
141
142
  send({ type: nextOpen ? "OPEN" : "CLOSE" });
142
143
  },
143
144
  getRootProps() {
package/dist/index.mjs CHANGED
@@ -135,7 +135,8 @@ function connect(service, normalize) {
135
135
  getInputEl(scope)?.focus();
136
136
  },
137
137
  setOpen(nextOpen) {
138
- if (nextOpen === open) return;
138
+ const open2 = state.hasTag("open");
139
+ if (open2 === nextOpen) return;
139
140
  send({ type: nextOpen ? "OPEN" : "CLOSE" });
140
141
  },
141
142
  getRootProps() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/combobox",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Core logic for the combobox widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,15 +26,15 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.3.0",
30
- "@zag-js/aria-hidden": "1.3.0",
31
- "@zag-js/collection": "1.3.0",
32
- "@zag-js/core": "1.3.0",
33
- "@zag-js/dismissable": "1.3.0",
34
- "@zag-js/dom-query": "1.3.0",
35
- "@zag-js/utils": "1.3.0",
36
- "@zag-js/popper": "1.3.0",
37
- "@zag-js/types": "1.3.0"
29
+ "@zag-js/anatomy": "1.3.2",
30
+ "@zag-js/aria-hidden": "1.3.2",
31
+ "@zag-js/collection": "1.3.2",
32
+ "@zag-js/core": "1.3.2",
33
+ "@zag-js/dismissable": "1.3.2",
34
+ "@zag-js/dom-query": "1.3.2",
35
+ "@zag-js/utils": "1.3.2",
36
+ "@zag-js/popper": "1.3.2",
37
+ "@zag-js/types": "1.3.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "clean-package": "2.2.0"