@winchsa/ui 0.1.14 → 0.1.15

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.
@@ -64,7 +64,7 @@ const clear = () => {
64
64
  model.value = null;
65
65
  };
66
66
  const requiredRule = (value) => {
67
- if (value.length !== 4 || !value.every((item) => item !== "")) {
67
+ if (value?.length !== 4 || !value.every((item) => item !== "")) {
68
68
  return t("validation.required");
69
69
  }
70
70
  return true;
@@ -84,7 +84,7 @@ watch(() => model.value, (newVal) => {
84
84
  v-slot="{ errorMessages: validationErrors, isValid }"
85
85
  v-model="model"
86
86
  :rules="[requiredRule]"
87
- validate-on="input lazy"
87
+ validate-on="submit lazy"
88
88
  >
89
89
  <div class="d-flex flex-column h-100">
90
90
  <VLabel
@@ -143,7 +143,7 @@ watch(() => props.modelValue, (val) => {
143
143
  v-slot="{ errorMessages: validationErrors, isValid }"
144
144
  v-model="date"
145
145
  :rules="rules"
146
- validate-on="input lazy"
146
+ validate-on="submit lazy"
147
147
  >
148
148
  <div class="d-flex flex-column">
149
149
  <VLabel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winchsa/ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {