Merge pull request #3925 from barthy-koeln/fix-datatable-contextmenu
fix: DataTable: Selection and focus loss when no custom ContextMenu is definedpull/3958/head
commit
ecf8b7b80f
|
@ -1022,8 +1022,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);
|
||||
|
|
Loading…
Reference in New Issue