Open jaguarxii opened 6 months ago
Same issue. The row itself can fire the rowClick event but the cell doesn't bubbles up the click to it if it has an editor but the column is not editable.
I updated the codepen with a workaround that works for my use case, by setting the "cellEditing" event to manage the row selection.
table.on("cellEditing", function(cell){
//e - the click event object
//row - row component
var selectedRow = table.getSelectedData();
if(selectedRow.length != 0){
if(selectedRow[0].id != cell.getRow().getData().id){
table.deselectRow();
table.selectRow(cell.getRow().getData().id);
}
}
else{
table.selectRow(cell.getRow().getData().id);
}
cell.edit(true);
//console.log("rowClick: " + cell.getData().name);
});
Describe the bug Tree RowClick event is not fired upon certain column setup
Tabulator Info
Working Example Sample
To Reproduce A step by step guide to recreate the issue in your JS Fiddle or Codepen:
Expected behavior All columns should fire the "rowClick" event of the table while clicking on its contents, to select the current row
Desktop (please complete the following information):
Smartphone (please complete the following information):