This commit is contained in:
AllenFang
2018-05-14 22:44:28 +08:00
parent f87fe3e544
commit ed2ba2a5c5

View File

@@ -48,7 +48,8 @@ export default (Base, {
onFilter(column, filterType) {
return (filterVal) => {
const { store, columns } = this.props;
const currFilters = Object.assign({}, this.state.currFilters);
// watch out here if migration to context API, #334
const currFilters = Object.assign({}, store.filters);
const { dataField, filter } = column;
if (!_.isDefined(filterVal) || filterVal === '') {