@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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. 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();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/jess-components",
3
3
  "type": "module",
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [