mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
bugfixs: should use className's value not 'className'. (#2202)
This commit is contained in:
parent
706ae5a5b8
commit
78ec439675
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user