sprintify-ui 0.6.12 → 0.6.13
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/sprintify-ui.es.js +722 -722
- package/package.json +1 -1
- package/src/components/BaseDatePicker.vue +5 -2
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<script lang="ts" setup>
|
|
45
45
|
import { Ref } from 'vue';
|
|
46
|
-
import { isArray } from 'lodash';
|
|
46
|
+
import { isArray, isEqual } from 'lodash';
|
|
47
47
|
import { DateTime } from 'luxon';
|
|
48
48
|
import { Icon as BaseIcon } from '@iconify/vue';
|
|
49
49
|
import { useField } from '@/composables/field';
|
|
@@ -182,7 +182,10 @@ const flatpickrConfig = computed(() => {
|
|
|
182
182
|
|
|
183
183
|
// Make sure the model value is formatted on the parent component onload
|
|
184
184
|
onMounted(() => {
|
|
185
|
-
|
|
185
|
+
|
|
186
|
+
// It is important to use isEqual here to compare Proxy with primitives, and to compare arrays
|
|
187
|
+
|
|
188
|
+
if (!isEqual(props.modelValue, modelValueFormatted.value)) {
|
|
186
189
|
emitUpdate(modelValueFormatted.value);
|
|
187
190
|
}
|
|
188
191
|
});
|