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 7354ba1 commit 71b661bCopy full SHA for 71b661b
src/Table.jsx
@@ -225,7 +225,6 @@ export default class Table extends React.Component {
225
key: column.key,
226
className: column.className || '',
227
children: column.title,
228
- onClick: column.onHeaderClick,
229
};
230
if (column.children) {
231
this.getHeaderRows(column.children, currentRow + 1, rows);
@@ -236,6 +235,9 @@ export default class Table extends React.Component {
236
235
if ('rowSpan' in column) {
237
cell.rowSpan = column.rowSpan;
238
}
+ if (typeof column.onHeaderClick === 'function') {
239
+ cell.onClick = column.onHeaderClick;
240
+ }
241
if (cell.colSpan !== 0) {
242
rows[currentRow].push(cell);
243
0 commit comments