fix settings select

This commit is contained in:
Julian Freeman
2025-12-01 09:49:56 -04:00
parent c5d82a710d
commit d6dda10d2f
2 changed files with 22 additions and 18 deletions

View File

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