Skip to content

Commit

Permalink
fix(VSelect): show placeholder when using persistentPlaceholder
Browse files Browse the repository at this point in the history
fixes #13792
  • Loading branch information
KaelWD committed Jun 19, 2021
1 parent a29b965 commit 44ef316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VSelect/VSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export default baseMixins.extend<options>().extend({
'aria-readonly': String(this.isReadonly),
'aria-activedescendant': getObjectValueByPath(this.$refs.menu, 'activeTile.id'),
autocomplete: getObjectValueByPath(input.data!, 'attrs.autocomplete', 'off'),
placeholder: (!this.isDirty && (this.isFocused || !this.hasLabel)) ? this.placeholder : undefined,
placeholder: (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) ? this.placeholder : undefined,
},
on: { keypress: this.onKeyPress },
})
Expand Down

0 comments on commit 44ef316

Please sign in to comment.