We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e532916 commit 5a5acd2Copy full SHA for 5a5acd2
src/selection/grid/CellColumnModel.mjs
@@ -32,12 +32,13 @@ class CellColumnModel extends CellModel {
32
* @param {Object} data
33
*/
34
onCellClick(data) {
35
- let me = this,
36
- {view} = me,
37
- cellId = data.data.currentTarget;
+ let me = this,
+ {view} = me,
+ cellId = data.data.currentTarget,
38
+ dataField = cellId && view.getDataField(cellId);
39
- if (cellId) {
40
- me.selectedColumns = [view.getDataField(cellId)];
+ if (dataField) {
41
+ me.selectedColumns = me.isSelected(cellId) ? [] : [dataField];
42
view.createViewData(true)
43
}
44
0 commit comments