Browse Source

fix: disabled of Dropdown, ref: #7102

pull/7299/head
Benjy Cui 7 years ago
parent
commit
e0bf1cefe7
  1. 2
      components/dropdown/dropdown-button.tsx
  2. 2
      components/dropdown/dropdown.tsx

2
components/dropdown/dropdown-button.tsx

@ -31,7 +31,7 @@ export default class DropdownButton extends React.Component<DropdownButtonProps,
const dropdownProps = {
align,
overlay,
trigger: disabled ? [] : trigger,
disabled,
onVisibleChange,
placement,
getPopupContainer,

2
components/dropdown/dropdown.tsx

@ -54,10 +54,10 @@ export default class Dropdown extends React.Component<DropDownProps, any> {
});
return (
<RcDropdown
{...this.props}
transitionName={this.getTransitionName()}
trigger={disabled ? [] : trigger}
overlay={fixedModeOverlay}
{...this.props}
>
{dropdownTrigger}
</RcDropdown>

Loading…
Cancel
Save