Browse Source

Revert "Should not hide filter dropdown when select item" (#2516)

pull/2517/head
Benjy Cui 8 years ago
committed by GitHub
parent
commit
fcf8b97044
  1. 11
      components/table/filterDropdown.jsx

11
components/table/filterDropdown.jsx

@ -48,13 +48,10 @@ export default class FilterMenu extends React.Component {
this.confirmFilter();
}
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 });
onVisibleChange = (visible) => {
this.setState({
visible,
});
if (!visible) {
this.confirmFilter();
}

Loading…
Cancel
Save