Fix use custom selection init value

This commit is contained in:
e01
2020-11-23 13:56:33 +02:00
parent 56028c4136
commit 5a3b56db2c

View File

@@ -8,7 +8,7 @@ export function useCustomSelection(currentValue: Ref<string>, items: Ref<any[]>,
const otherValue = computed({
get() {
return localOtherValue.value;
return localOtherValue.value || (usesOtherValue.value ? currentValue.value : '');
},
set(newValue: string | null) {
if (newValue === null) {