Skip to content

Commit

Permalink
fix #376
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Mar 31, 2016
1 parent de90f4a commit 5da38c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TableHeaderColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ class TableHeaderColumn extends Component {
}
const sortCaret = this.props.sort ? Util.renderReactSortCaret(this.props.sort) : defaultCaret;
const classes = this.props.className + ' ' + (this.props.dataSort ? 'sort-column' : '');

const title = typeof this.props.children === 'string' ? { title: this.props.children } : null;
return (
<th ref='header-col'
className={ classes }
style={ thStyle }
title={ this.props.children }
onClick={ this.handleColumnClick }>
onClick={ this.handleColumnClick }
{ ...title }>
{ this.props.children }{ sortCaret }
<div onClick={ e => e.stopPropagation() }>
{ this.props.filter ? this.getFilters() : null }
Expand Down

0 comments on commit 5da38c3

Please sign in to comment.