@ramathibodi/nuxt-commons 4.0.6 → 4.0.7

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.3.1"
6
6
  },
7
- "version": "4.0.6",
7
+ "version": "4.0.7",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -106,10 +106,11 @@ watchEffect(() => {
106
106
  }
107
107
  }
108
108
  });
109
- watch([datePart, timePart, () => props.rules], () => {
109
+ const rulesLen = () => props.rules?.length ?? 0;
110
+ watch([datePart, timePart, rulesLen], () => {
110
111
  if (!props.readonly) nextTick(() => dateRef.value?.validate());
111
112
  });
112
- watch([datePart, timePart, () => props.rules], () => {
113
+ watch([datePart, timePart, rulesLen], () => {
113
114
  if (!props.readonly) nextTick(() => timeRef.value?.validate());
114
115
  });
115
116
  watch(() => props.modelValue, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramathibodi/nuxt-commons",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "Ramathibodi Nuxt modules for common components",
5
5
  "repository": {
6
6
  "type": "git",