@simsustech/quasar-components 0.5.5 → 0.5.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 8cd7bb8: fix(DateInput): do not emit invalid date
8
+
3
9
  ## 0.5.5
4
10
 
5
11
  ### Patch Changes
package/dist/form.js CHANGED
@@ -388,7 +388,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
388
388
  };
389
389
  watch([year, month, day], () => {
390
390
  const date = `${year.value}-${String(month.value).padStart(2, "0")}-${String(day.value).padStart(2, "0")}`;
391
- if (Date.parse(date)) {
391
+ if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
392
392
  emit("update:modelValue", date);
393
393
  } else {
394
394
  emit("update:modelValue", "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -139,7 +139,7 @@ const setDate: InstanceType<typeof QDate>['$props']['onUpdate:modelValue'] = (
139
139
 
140
140
  watch([year, month, day], () => {
141
141
  const date = `${year.value}-${String(month.value).padStart(2, '0')}-${String(day.value).padStart(2, '0')}`
142
- if (Date.parse(date)) {
142
+ if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
143
143
  emit('update:modelValue', date)
144
144
  } else {
145
145
  emit('update:modelValue', '')