fix settings select
This commit is contained in:
@@ -31,11 +31,10 @@ const normalizedOptions = computed(() => {
|
||||
|
||||
const selectedLabel = computed(() => {
|
||||
const found = normalizedOptions.value.find(o => o.value === props.modelValue);
|
||||
return found ? (found.label || found.value) : props.placeholder || '';
|
||||
});
|
||||
|
||||
const toggle = () => {
|
||||
isOpen.value = !isOpen.value;
|
||||
return found ? (found.label || found.value) : (props.modelValue || props.placeholder || '');
|
||||
});
|
||||
|
||||
const toggle = () => { isOpen.value = !isOpen.value;
|
||||
};
|
||||
|
||||
const select = (value: string) => {
|
||||
|
||||
Reference in New Issue
Block a user