弹出位置优化

This commit is contained in:
2betop 2020-03-04 16:42:09 +08:00
parent 51b4e65512
commit 5d1a9318ec
1 changed files with 1 additions and 3 deletions

View File

@ -264,9 +264,7 @@ export class ColorControl extends React.PureComponent<
{isOpened ? (
<Overlay
placement={
placement || 'left-bottom-left-top right-bottom-right-top'
}
placement={placement || 'auto'}
target={() => findDOMNode(this)}
onHide={this.close}
container={popOverContainer || (() => findDOMNode(this))}