fix: unused datatable context menu clears selection

pull/3925/head
barthy 2023-05-05 11:29:14 +02:00
parent 8e6068e26b
commit d05aa79435
No known key found for this signature in database
GPG Key ID: 97E4AEB3E6AB3DD6
1 changed files with 4 additions and 2 deletions

View File

@ -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);