Skip to content

Commit

Permalink
Add KeyboardEvent to click:row
Browse files Browse the repository at this point in the history
  • Loading branch information
dmo committed Jan 27, 2022
1 parent 659950e commit 70e7176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api-generator/src/maps/v-data-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const DataTableEvents = [
{
name: 'click:row',
source: 'v-data-table',
value: `any, ${dataString}, MouseEvent`,
value: `any, ${dataString}, MouseEvent | KeyboardEvent`,
},
{
name: 'contextmenu:row',
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VDataTable/VDataTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export default mixins(
on: {
// TODO: for click, the first argument should be the event, and the second argument should be data,
// but this is a breaking change so it's for v3
click: (event: MouseEvent) => this.$emit('click:row', item, data, event),
click: (event: MouseEvent | KeyboardEvent) => this.$emit('click:row', item, data, event),
contextmenu: (event: MouseEvent) => this.$emit('contextmenu:row', event, data),
dblclick: (event: MouseEvent) => this.$emit('dblclick:row', event, data),
},
Expand Down

0 comments on commit 70e7176

Please sign in to comment.