sprintify-ui 0.6.76 → 0.6.77
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
CHANGED
|
@@ -8846,7 +8846,7 @@ const dE = {
|
|
|
8846
8846
|
},
|
|
8847
8847
|
emits: ["update:modelValue"],
|
|
8848
8848
|
setup(n, { expose: t, emit: e }) {
|
|
8849
|
-
const r = n, i = oe(null), o = P(() => r.modelValue ? r.options.find((l) => l[r.primaryKey]
|
|
8849
|
+
const r = n, i = oe(null), o = P(() => r.modelValue ? r.options.find((l) => l[r.primaryKey] + "" == r.modelValue + "") : null);
|
|
8850
8850
|
function a(l) {
|
|
8851
8851
|
l ? e("update:modelValue", l[r.primaryKey], l) : e("update:modelValue", null, null);
|
|
8852
8852
|
}
|
package/package.json
CHANGED
|
@@ -131,7 +131,7 @@ const autocomplete = ref<InstanceType<typeof BaseAutocomplete> | null>(null);
|
|
|
131
131
|
|
|
132
132
|
const model = computed(() => {
|
|
133
133
|
return props.modelValue
|
|
134
|
-
? props.options.find((option) => option[props.primaryKey] === props.modelValue)
|
|
134
|
+
? props.options.find((option) => (option[props.primaryKey] + '') === (props.modelValue + ''))
|
|
135
135
|
: null;
|
|
136
136
|
});
|
|
137
137
|
|