@zag-js/number-input 0.0.0-dev-20230207111512 → 0.0.0-dev-20230213145448
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.
|
@@ -484,6 +484,7 @@ function machine(userContext) {
|
|
|
484
484
|
valueAsNumber: ctx2.valueAsNumber
|
|
485
485
|
});
|
|
486
486
|
},
|
|
487
|
+
// sync input value, in event it was set from form libraries via `ref`, `bind:this`, etc.
|
|
487
488
|
syncInputValue(ctx2) {
|
|
488
489
|
const input = dom.getInputEl(ctx2);
|
|
489
490
|
if (!input || input.value == ctx2.value)
|
package/dist/index.js
CHANGED
|
@@ -987,6 +987,7 @@ function machine(userContext) {
|
|
|
987
987
|
valueAsNumber: ctx2.valueAsNumber
|
|
988
988
|
});
|
|
989
989
|
},
|
|
990
|
+
// sync input value, in event it was set from form libraries via `ref`, `bind:this`, etc.
|
|
990
991
|
syncInputValue(ctx2) {
|
|
991
992
|
const input = dom.getInputEl(ctx2);
|
|
992
993
|
if (!input || input.value == ctx2.value)
|
package/dist/index.mjs
CHANGED
|
@@ -741,6 +741,7 @@ function machine(userContext) {
|
|
|
741
741
|
valueAsNumber: ctx2.valueAsNumber
|
|
742
742
|
});
|
|
743
743
|
},
|
|
744
|
+
// sync input value, in event it was set from form libraries via `ref`, `bind:this`, etc.
|
|
744
745
|
syncInputValue(ctx2) {
|
|
745
746
|
const input = dom.getInputEl(ctx2);
|
|
746
747
|
if (!input || input.value == ctx2.value)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/number-input",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230213145448",
|
|
4
4
|
"description": "Core logic for the number-input widget implemented as a state machine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@zag-js/anatomy": "0.1.4",
|
|
30
|
-
"@zag-js/core": "0.0.0-dev-
|
|
30
|
+
"@zag-js/core": "0.0.0-dev-20230213145448",
|
|
31
31
|
"@zag-js/types": "0.3.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|