mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
parent
4aaf140de5
commit
b2121fdf24
@ -43,10 +43,14 @@ class HeaderCell extends eventDelegater(React.Component) {
|
||||
|
||||
const delegateEvents = this.delegate(headerEvents);
|
||||
|
||||
const customAttrs = _.isFunction(headerAttrs)
|
||||
? headerAttrs(column, index)
|
||||
: (headerAttrs || {});
|
||||
|
||||
const cellAttrs = {
|
||||
..._.isFunction(headerAttrs) ? headerAttrs(column, index) : headerAttrs,
|
||||
...customAttrs,
|
||||
...delegateEvents,
|
||||
tabIndex: 0
|
||||
tabIndex: _.isDefined(customAttrs.tabIndex) ? customAttrs.tabIndex : 0
|
||||
};
|
||||
|
||||
let sortSymbol;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user