Skip to content

Commit

Permalink
fix(QSelect): show placeholder in multiple mode when value is empty a…
Browse files Browse the repository at this point in the history
…rray (#166)
  • Loading branch information
Sergey authored Sep 30, 2021
1 parent f446cc3 commit a43652f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qComponents/QSelect/src/QSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ export default defineComponent({
});
const preparedPlaceholder = computed<Nullable<string>>(() => {
return state.query || (props.multiple && props.modelValue)
return state.query ||
(props.multiple &&
Array.isArray(props.modelValue) &&
props.modelValue.length)
? ''
: props.placeholder;
});
Expand Down

0 comments on commit a43652f

Please sign in to comment.