bugfixs: should use className's value not 'className'. (#2202)

This commit is contained in:
Shawn Sit 2016-06-28 17:18:20 +08:00 committed by 偏右
parent 706ae5a5b8
commit 78ec439675

View File

@ -23,7 +23,7 @@ export default class DropdownButton extends React.Component {
const { type, overlay, trigger, align, children, className, onClick, ...restProps } = this.props;
const cls = classNames({
'ant-dropdown-button': true,
className: !!className,
[className]: !!className,
});
return (
<ButtonGroup {...restProps} className={cls}>