fix: dropdown menu should not show while disabled, close: #3535

This commit is contained in:
Benjy Cui 2016-10-28 14:07:46 +08:00
parent f8d2aeefc3
commit 6bd75f2666

View File

@ -44,7 +44,7 @@ export default class DropdownButton extends React.Component<DropdownButtonProps,
return (
<ButtonGroup {...restProps} className={cls}>
<Button type={type} onClick={onClick} disabled={disabled}>{children}</Button>
<Dropdown align={align} overlay={overlay} trigger={trigger}>
<Dropdown align={align} overlay={overlay} trigger={disabled ? [] : trigger}>
<Button type={type} disabled={disabled}>
<Icon type="down" />
</Button>