This commit is contained in:
AllenFang 2019-09-29 16:19:36 +08:00
parent 4aaf140de5
commit b2121fdf24

View File

@ -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;