mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge pull request #3169 from dimitrov-adrian/use-custom-selection-fix
Fix use custom selection init value
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user