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 4aaf140 commit b2121fdCopy full SHA for b2121fd
packages/react-bootstrap-table2/src/header-cell.js
@@ -43,10 +43,14 @@ class HeaderCell extends eventDelegater(React.Component) {
43
44
const delegateEvents = this.delegate(headerEvents);
45
46
+ const customAttrs = _.isFunction(headerAttrs)
47
+ ? headerAttrs(column, index)
48
+ : (headerAttrs || {});
49
+
50
const cellAttrs = {
- ..._.isFunction(headerAttrs) ? headerAttrs(column, index) : headerAttrs,
51
+ ...customAttrs,
52
...delegateEvents,
- tabIndex: 0
53
+ tabIndex: _.isDefined(customAttrs.tabIndex) ? customAttrs.tabIndex : 0
54
};
55
56
let sortSymbol;
0 commit comments