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);
|
this.$emit('row-dblclick', e);
|
||||||
},
|
},
|
||||||
onRowRightClick(event) {
|
onRowRightClick(event) {
|
||||||
DomHandler.clearSelection();
|
if(this.contextMenu){
|
||||||
event.originalEvent.target.focus();
|
DomHandler.clearSelection();
|
||||||
|
event.originalEvent.target.focus();
|
||||||
|
}
|
||||||
|
|
||||||
this.$emit('update:contextMenuSelection', event.data);
|
this.$emit('update:contextMenuSelection', event.data);
|
||||||
this.$emit('row-contextmenu', event);
|
this.$emit('row-contextmenu', event);
|
||||||
|
|
Loading…
Reference in New Issue