Skip to content

Commit

Permalink
fix(VSelect): don't blur input on menu mousedown
Browse files Browse the repository at this point in the history
fixes #15839
  • Loading branch information
KaelWD committed Feb 12, 2024
1 parent bc48f00 commit 0a77965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VList/VList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default VSheet.extend<options>().extend({
role: this.isInNav || this.isInMenu ? undefined : 'list',
...this.attrs$,
},
on: this.listeners$,
}

return h(this.tag, this.setBackgroundColor(this.color, data), getSlot(this))
Expand Down
5 changes: 5 additions & 0 deletions packages/vuetify/src/components/VSelect/VSelectList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ export default mixins(Colorable, Themeable).extend({
role: 'listbox',
tabindex: -1,
},
on: {
mousedown: (e: Event) => {
e.preventDefault()
},
},
props: { dense: this.dense },
}, children)
},
Expand Down

0 comments on commit 0a77965

Please sign in to comment.