Skip to content

Commit

Permalink
fix(VSelect): fix selected text when return-object
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Jan 4, 2023
1 parent 36a3891 commit ba88d95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/select/src/VSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ const selectedText = computed(() => {
return item[itemValue.value] === selectedItem.value;
});
if (props.returnObject) {
return (selectedItem.value as VSelectItem)[props.itemText] || placeholder.value;
}
return item?.[props.itemText] || placeholder.value;
});
Expand Down

0 comments on commit ba88d95

Please sign in to comment.