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

pull/3638/head
Benjy Cui 8 years ago
parent f8d2aeefc3
commit 6bd75f2666

@ -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>

Loading…
Cancel
Save