mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
Fix placement not working in Dropdown.Button, close #5594
This commit is contained in:
parent
429539ecf4
commit
3f1714bb0c
@ -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
|
||||
|
@ -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',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user