mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Merge pull request #3925 from barthy-koeln/fix-datatable-contextmenu
fix: DataTable: Selection and focus loss when no custom ContextMenu is defined
This commit is contained in:
commit
ecf8b7b80f
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue