Skip to content

Commit

Permalink
fix #845
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Nov 21, 2016
1 parent 8aa21f5 commit 07b8560
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/TableHeaderColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ class TableHeaderColumn extends Component {
);
}
case Const.FILTER_TYPE.CUSTOM: {
return this.props.filter.getElement(this.handleFilter,
const elm = this.props.filter.getElement(this.handleFilter,
this.props.filter.customFilterParameters);

return React.cloneElement(elm, { ref: 'customFilter' });
}
}
}
Expand Down Expand Up @@ -150,6 +152,10 @@ class TableHeaderColumn extends Component {
this.refs.dateFilter.cleanFiltered();
break;
}
case Const.FILTER_TYPE.CUSTOM: {
this.refs.customFilter.cleanFiltered();
break;
}
}
}

Expand Down

0 comments on commit 07b8560

Please sign in to comment.