|
|
|
@ -102,7 +102,7 @@ const hasEditRoles = computed(() => isUIAllowed('dataEdit'))
|
|
|
|
|
const editAllowed = computed(() => (hasEditRoles.value || isForm.value) && active.value) |
|
|
|
|
|
|
|
|
|
const vModel = computed({ |
|
|
|
|
get: () => tempSelectedOptState.value ?? modelValue, |
|
|
|
|
get: () => tempSelectedOptState.value ?? modelValue?.trim(), |
|
|
|
|
set: (val) => { |
|
|
|
|
if (val && isNewOptionCreateEnabled.value && (options.value ?? []).every((op) => op.title !== val)) { |
|
|
|
|
tempSelectedOptState.value = val |
|
|
|
|