diff --git a/src/runtime/components/forms/Select.vue b/src/runtime/components/forms/Select.vue index aa08513a..02eaec74 100644 --- a/src/runtime/components/forms/Select.vue +++ b/src/runtime/components/forms/Select.vue @@ -21,7 +21,7 @@ :key="`${childOption[valueAttribute]}-${index}-${index2}`" :value="childOption[valueAttribute]" :selected="childOption[valueAttribute] === normalizedValue" - :disabled="option.disabled" + :disabled="childOption.disabled" v-text="childOption[textAttribute]" /> @@ -156,7 +156,7 @@ export default { return [ { - [props.valueAttribute]: null, + [props.valueAttribute]: '', [props.textAttribute]: props.placeholder, disabled: true }, @@ -167,7 +167,7 @@ export default { const normalizedValue = computed(() => { const foundOption = normalizedOptionsWithPlaceholder.value.find(option => option.value === props.modelValue) if (!foundOption) { - return null + return '' } return foundOption.value