Skip to content

Commit

Permalink
fix(VCombobox): blur on click outside when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD authored and whoistobias committed Feb 26, 2020
1 parent 82a7fd1 commit 91b08c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vuetify/src/components/VSelect/VSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ export default baseMixins.extend<options>().extend({
!this._isDestroyed &&

// Click originates from outside the menu content
this.getContent() &&
!this.getContent().contains(e.target as Node) &&
// Multiple selects don't close when an item is clicked
(!this.getContent() ||
!this.getContent().contains(e.target as Node)) &&

// Click originates from outside the element
this.$el &&
Expand Down

0 comments on commit 91b08c5

Please sign in to comment.