diff --git a/components/table/filterDropdown.tsx b/components/table/filterDropdown.tsx index ee1d298341..64e67da11b 100755 --- a/components/table/filterDropdown.tsx +++ b/components/table/filterDropdown.tsx @@ -194,8 +194,8 @@ export default class FilterMenu extends React.Component, F [`${dropdownPrefixCls}-menu-without-submenu`]: !this.hasSubMenu(), }); let { filterDropdown } = column; - if (filterDropdown && typeof filterDropdown === 'function') { - filterDropdown = filterDropdown({ + if (typeof filterDropdown === 'function') { + filterDropdown = (filterDropdown as Function)({ prefixCls: `${dropdownPrefixCls}-custom`, setSelectedKeys: (selectedKeys: Array) => this.setSelectedKeys({ selectedKeys }), selectedKeys: this.state.selectedKeys,