Browse Source

fix: should not hide filter dropdown when select item, close #2507 (#2509)

pull/2516/head
偏右 8 years ago
committed by Benjy Cui
parent
commit
5c57fe3a8b
  1. 11
      components/table/filterDropdown.jsx

11
components/table/filterDropdown.jsx

@ -48,10 +48,13 @@ export default class FilterMenu extends React.Component {
this.confirmFilter();
}
onVisibleChange = (visible) => {
this.setState({
visible,
});
onVisibleChange = (visible, e) => {
// Don't close menu when select menu item
if (e && e.type === 'click' &&
e.currentTarget.className === 'ant-table-filter-dropdown') {
return;
}
this.setState({ visible });
if (!visible) {
this.confirmFilter();
}

Loading…
Cancel
Save