Merge pull request #3169 from dimitrov-adrian/use-custom-selection-fix

Fix use custom selection init value
This commit is contained in:
Rijk van Zanten
2020-11-23 09:39:49 -05:00
committed by GitHub

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) {