edvoyui-component-library-test-flight 0.0.29 → 0.0.30

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "edvoyui-component-library-test-flight",
3
3
  "private": false,
4
- "version": "0.0.29",
4
+ "version": "0.0.30",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/",
@@ -140,6 +140,18 @@ const { modelValue, isUtc, clearIcon } = toRefs(props);
140
140
 
141
141
  const datepicker = ref(props.modelValue)
142
142
 
143
+ //Date clear
144
+ watch(
145
+ () => props.modelValue,
146
+ (newValue) => {
147
+ if (!newValue || newValue.length === 0) {
148
+ datepicker.value = [];
149
+ } else {
150
+ datepicker.value = newValue;
151
+ }
152
+ }
153
+ );
154
+
143
155
  watch(
144
156
  datepicker,
145
157
  (newDate) => {