Skip to content

Commit

Permalink
fix(VSelect): close menu on blur
Browse files Browse the repository at this point in the history
fixes #10660

Cherry-picked from b0e4807
Related: 5fa6a68, 49cb28b
  • Loading branch information
KaelWD committed Mar 3, 2020
1 parent 94113ac commit 7f86d4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VSelect/VSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export default VTextField.extend({
blur (e) {
VTextField.options.methods.blur.call(this, e)
this.isMenuActive = false
this.isFocused = false
this.selectedIndex = -1
},
/** @public */
Expand Down Expand Up @@ -528,6 +529,9 @@ export default VTextField.extend({
getValue (item) {
return getPropertyFromItem(item, this.itemValue, this.getText(item))
},
onBlur (e) {
e && this.$emit('blur', e)
},
onChipInput (item) {
if (this.multiple) this.selectItem(item)
else this.setValue(null)
Expand Down

0 comments on commit 7f86d4c

Please sign in to comment.