From e75c7be774f3244213ae028131c2cf2c3bf65dab Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sat, 1 Oct 2016 15:20:51 +0800 Subject: [PATCH] fix #740 --- src/TableHeaderColumn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TableHeaderColumn.js b/src/TableHeaderColumn.js index 7a33346ce..58fd632ca 100644 --- a/src/TableHeaderColumn.js +++ b/src/TableHeaderColumn.js @@ -74,6 +74,7 @@ class TableHeaderColumn extends Component { let defaultCaret; const { dataAlign, + dataField headerAlign, hidden, sort, @@ -101,7 +102,7 @@ class TableHeaderColumn extends Component { } let sortCaret = sort ? Util.renderReactSortCaret(sort) : defaultCaret; if (caretRender) { - sortCaret = caretRender(sort); + sortCaret = caretRender(sort, dataField); } const classes = classSet( typeof className === 'function' ? className() : className,