fix: unused datatable context menu clears selection

This commit is contained in:
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

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