Browse Source

Trigger Table onChange when selected filter items are changed, close #2228

pull/2274/head
afc163 9 years ago
parent
commit
2780b100df
  1. 8
      components/table/filterDropdown.jsx

8
components/table/filterDropdown.jsx

@ -41,7 +41,7 @@ export default class FilterMenu extends React.Component {
this.setState({
visible: false,
});
this.props.confirmFilter(this.props.column, this.state.selectedKeys);
this.confirmFilter();
}
onVisibleChange = (visible) => {
@ -49,6 +49,12 @@ export default class FilterMenu extends React.Component {
visible,
});
if (!visible) {
this.confirmFilter();
}
}
confirmFilter() {
if (this.state.selectedKeys !== this.props.selectedKeys) {
this.props.confirmFilter(this.props.column, this.state.selectedKeys);
}
}

Loading…
Cancel
Save