Skip to content

Commit

Permalink
fix(VCombobox): emit paste event
Browse files Browse the repository at this point in the history
fixes #11186
  • Loading branch information
KaelWD committed Oct 6, 2022
1 parent 1b22a66 commit 7417807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VCombobox/VCombobox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export default VAutocomplete.extend({
this.internalSearch = null
},
onPaste (event: ClipboardEvent) {
this.$emit('paste', event)
if (!this.multiple || this.searchIsDirty) return

const pastedItemText = event.clipboardData?.getData('text/vnd.vuetify.autocomplete.item+plain')
Expand Down

0 comments on commit 7417807

Please sign in to comment.