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(); this.confirmFilter();
} }
onVisibleChange = (visible, e) => { onVisibleChange = (visible) => {
// Don't close menu when select menu item this.setState({
if (e && e.type === 'click' && visible,
e.currentTarget.className === 'ant-table-filter-dropdown') { });
return;
}
this.setState({ visible });
if (!visible) { if (!visible) {
this.confirmFilter(); this.confirmFilter();
} }

Loading…
Cancel
Save