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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -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
- if (props.modelValue !== modelValueFormatted.value) {
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
  });