Skip to content

Commit

Permalink
fix: unused datatable context menu clears selection
Browse files Browse the repository at this point in the history
  • Loading branch information
barthy-koeln committed May 5, 2023
1 parent 8e6068e commit d05aa79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/lib/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1011,8 +1011,10 @@ export default {
this.$emit('row-dblclick', e);
},
onRowRightClick(event) {
DomHandler.clearSelection();
event.originalEvent.target.focus();
if(this.contextMenu){
DomHandler.clearSelection();
event.originalEvent.target.focus();
}
this.$emit('update:contextMenuSelection', event.data);
this.$emit('row-contextmenu', event);
Expand Down

0 comments on commit d05aa79

Please sign in to comment.