Fix filterIcon className of Table, close #10937

This commit is contained in:
afc163 2018-06-19 10:26:44 +08:00
parent 5903fdb19f
commit b1d60f5ce1

View File

@ -174,9 +174,7 @@ export default class FilterMenu<T> extends React.Component<FilterMenuProps<T>, F
return filterIcon ? React.cloneElement(filterIcon as any, {
title: locale.filterTitle,
className: classNames(filterIcon.className, {
[`${prefixCls}-icon`]: true,
}),
className: classNames(`${prefixCls}-icon`, filterIcon.props.className),
}) : <Icon title={locale.filterTitle} type="filter" className={dropdownSelectedClass} />;
}
render() {