mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
fix: type error of filterDropdown
This commit is contained in:
parent
ee84f4ce0a
commit
fe677e2966
@ -194,8 +194,8 @@ export default class FilterMenu<T> extends React.Component<FilterMenuProps<T>, 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<any>) => this.setSelectedKeys({ selectedKeys }),
|
||||
selectedKeys: this.state.selectedKeys,
|
||||
|
Loading…
Reference in New Issue
Block a user