@zag-js/pin-input 1.35.3 → 1.36.0

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.
@@ -185,6 +185,7 @@ function connect(service, normalize) {
185
185
  send({ type: "INPUT.BACKSPACE" });
186
186
  return;
187
187
  }
188
+ if (value === computed("focusedValue")) return;
188
189
  send({ type: "INPUT.CHANGE", value, index });
189
190
  },
190
191
  onKeyDown(event) {
@@ -161,6 +161,7 @@ function connect(service, normalize) {
161
161
  send({ type: "INPUT.BACKSPACE" });
162
162
  return;
163
163
  }
164
+ if (value === computed("focusedValue")) return;
164
165
  send({ type: "INPUT.CHANGE", value, index });
165
166
  },
166
167
  onKeyDown(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/pin-input",
3
- "version": "1.35.3",
3
+ "version": "1.36.0",
4
4
  "description": "Core logic for the pin-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,11 +26,11 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "1.35.3",
30
- "@zag-js/dom-query": "1.35.3",
31
- "@zag-js/utils": "1.35.3",
32
- "@zag-js/core": "1.35.3",
33
- "@zag-js/types": "1.35.3"
29
+ "@zag-js/anatomy": "1.36.0",
30
+ "@zag-js/dom-query": "1.36.0",
31
+ "@zag-js/utils": "1.36.0",
32
+ "@zag-js/core": "1.36.0",
33
+ "@zag-js/types": "1.36.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "clean-package": "2.2.0"