@zag-js/pin-input 1.21.2 → 1.21.4
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 +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -442,7 +442,9 @@ var machine = createMachine({
|
|
|
442
442
|
},
|
|
443
443
|
clearValue({ context }) {
|
|
444
444
|
const nextValue = Array.from({ length: context.get("count") }).fill("");
|
|
445
|
-
|
|
445
|
+
queueMicrotask(() => {
|
|
446
|
+
context.set("value", nextValue);
|
|
447
|
+
});
|
|
446
448
|
},
|
|
447
449
|
clearFocusedValue({ context, computed }) {
|
|
448
450
|
const focusedIndex = context.get("focusedIndex");
|
package/dist/index.mjs
CHANGED
|
@@ -440,7 +440,9 @@ var machine = createMachine({
|
|
|
440
440
|
},
|
|
441
441
|
clearValue({ context }) {
|
|
442
442
|
const nextValue = Array.from({ length: context.get("count") }).fill("");
|
|
443
|
-
|
|
443
|
+
queueMicrotask(() => {
|
|
444
|
+
context.set("value", nextValue);
|
|
445
|
+
});
|
|
444
446
|
},
|
|
445
447
|
clearFocusedValue({ context, computed }) {
|
|
446
448
|
const focusedIndex = context.get("focusedIndex");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/pin-input",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.4",
|
|
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.21.
|
|
30
|
-
"@zag-js/
|
|
31
|
-
"@zag-js/core": "1.21.
|
|
32
|
-
"@zag-js/
|
|
33
|
-
"@zag-js/
|
|
29
|
+
"@zag-js/anatomy": "1.21.4",
|
|
30
|
+
"@zag-js/dom-query": "1.21.4",
|
|
31
|
+
"@zag-js/core": "1.21.4",
|
|
32
|
+
"@zag-js/utils": "1.21.4",
|
|
33
|
+
"@zag-js/types": "1.21.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"clean-package": "2.2.0"
|