diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index 3256a2066..5bc5cdf0a 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -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);