mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix: dropdown menu should not show while disabled, close: #3535
This commit is contained in:
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…
Reference in New Issue
Block a user