@targoninc/jess-components 0.0.31 → 0.0.32
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 +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -790,7 +790,7 @@ function input(config) {
|
|
|
790
790
|
errors.value = [];
|
|
791
791
|
if (config.debounce) {
|
|
792
792
|
if (Date.now() - lastChange < config.debounce) {
|
|
793
|
-
debounce(inputId, () => validate(newValue), config.debounce);
|
|
793
|
+
debounce(inputId + "validate", () => validate(newValue), config.debounce);
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
@@ -819,9 +819,9 @@ function input(config) {
|
|
|
819
819
|
validate(e.target.value);
|
|
820
820
|
}
|
|
821
821
|
if (config.onchange) {
|
|
822
|
-
debounce(inputId, () => config.onchange(e.target.value), config.debounce);
|
|
822
|
+
debounce(inputId + "change", () => config.onchange(e.target.value), config.debounce);
|
|
823
823
|
}
|
|
824
|
-
value.value = e.target.value;
|
|
824
|
+
debounce(inputId + "value", () => value.value = e.target.value, config.debounce);
|
|
825
825
|
}).onchange((e) => {
|
|
826
826
|
touched.value = true;
|
|
827
827
|
lastChange = Date.now();
|
|
@@ -829,9 +829,9 @@ function input(config) {
|
|
|
829
829
|
validate(e.target.value);
|
|
830
830
|
}
|
|
831
831
|
if (config.onchange) {
|
|
832
|
-
debounce(inputId, () => config.onchange(e.target.value), config.debounce);
|
|
832
|
+
debounce(inputId + "change", () => config.onchange(e.target.value), config.debounce);
|
|
833
833
|
}
|
|
834
|
-
value.value = e.target.value;
|
|
834
|
+
debounce(inputId + "value", () => value.value = e.target.value, config.debounce);
|
|
835
835
|
}).onkeydown(config.onkeydown ?? (() => {})).name(config.name).build(), when(isPassword, eyeButton(toggleState, () => {
|
|
836
836
|
toggleState.value = !toggleState.value;
|
|
837
837
|
}))).build(), when(hasError, errorList(errors))).build();
|