From fcf8b970441b23c582acc451a3186ba519116a2b Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 27 Jul 2016 13:40:10 +0800 Subject: [PATCH] Revert "Should not hide filter dropdown when select item" (#2516) --- components/table/filterDropdown.jsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/components/table/filterDropdown.jsx b/components/table/filterDropdown.jsx index 667227b31d..f9719991be 100644 --- a/components/table/filterDropdown.jsx +++ b/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(); }