Skip to content
Snippets Groups Projects
Commit efa29f1c authored by Allen Gilliland's avatar Allen Gilliland
Browse files

fix issue where filters sometimes don't clear because we aren't binding to a local function.

parent 6cea9cc8
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,10 @@ export default React.createClass({
this.setValue(value, index, this.props.index);
},
removeFilterFn: function() {
this.props.removeFilter(this.props.index);
},
renderFieldList: function() {
return (
<div className={this.props.sectionClassName}>
......@@ -282,7 +286,7 @@ export default React.createClass({
{this.renderFieldList()}
{this.renderOperatorList()}
{this.renderFilterValue()}
<a onClick={this.props.removeFilter.bind(null, this.props.index)}>
<a onClick={this.removeFilterFn}>
<Icon name='close' width="12px" height="12px" />
</a>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment