Fix placement not working in Dropdown.Button, close #5594

This commit is contained in:
afc163 2017-04-05 11:17:07 +08:00
parent 429539ecf4
commit 3f1714bb0c
2 changed files with 2 additions and 10 deletions

View File

@ -36,7 +36,7 @@ const menu = (
ReactDOM.render(
<div>
<Dropdown.Button onClick={handleButtonClick} overlay={menu} placement="bottomLeft">
<Dropdown.Button onClick={handleButtonClick} overlay={menu}>
Dropdown
</Dropdown.Button>
<Dropdown.Button

View File

@ -23,15 +23,7 @@ export interface DropdownButtonProps {
export default class DropdownButton extends React.Component<DropdownButtonProps, any> {
static defaultProps = {
align: {
points: ['tr', 'br'],
overlay: {
adjustX: 1,
adjustY: 1,
},
offset: [0, 4],
targetOffset: [0, 0],
},
placement: 'bottomRight',
type: 'default',
prefixCls: 'ant-dropdown-button',
};