Skip to content

Commit

Permalink
fix(VAutocomplete): don't try to reset search on blur if multiple
Browse files Browse the repository at this point in the history
fixes #13877
  • Loading branch information
KaelWD committed Jul 19, 2021
1 parent 259d38c commit 15d7dae
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/vuetify/src/components/VAutocomplete/VAutocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,18 @@ export default VSelect.extend({
})
},
updateSelf () {
if (!this.searchIsDirty &&
if (
!this.searchIsDirty &&
!this.internalValue
) return

if (!this.valueComparator(
this.internalSearch,
this.getValue(this.internalValue)
)) {
if (
!this.multiple &&
!this.valueComparator(
this.internalSearch,
this.getValue(this.internalValue)
)
) {
this.setSearch()
}
},
Expand Down

0 comments on commit 15d7dae

Please sign in to comment.