@volverjs/ui-vue 0.0.9-beta.18 → 0.0.9-beta.19

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.
@@ -79,6 +79,13 @@
79
79
  return
80
80
  }
81
81
  if (type.value === INPUT_TYPES.DATE) {
82
+ if (
83
+ el.value instanceof HTMLInputElement &&
84
+ el.value.type === 'date'
85
+ ) {
86
+ localModelValue.value = el.value.value
87
+ return
88
+ }
82
89
  let date = typed.value
83
90
  if (!(date instanceof Date)) {
84
91
  date = new Date(date)
@@ -90,6 +97,13 @@
90
97
  return
91
98
  }
92
99
  if (type.value === INPUT_TYPES.DATETIME_LOCAL) {
100
+ if (
101
+ el.value instanceof HTMLInputElement &&
102
+ el.value.type === 'datetime-local'
103
+ ) {
104
+ localModelValue.value = el.value.value
105
+ return
106
+ }
93
107
  let date = typed.value
94
108
  if (!(typed.value instanceof Date)) {
95
109
  date = new Date(date)