fix: 修复 nested-select 弹出位置不正确问题 (#2693)

* fix: 修复 nested-select 弹出位置不正确问题

* 修复查找问题
This commit is contained in:
吴多益 2021-10-12 22:40:03 +08:00 committed by GitHub
parent 65a5398030
commit 303c5a3a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "amis",
"version": "1.3.1",
"version": "1.3.5-beta.2",
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
"scripts": {

View File

@ -1,3 +1,7 @@
.#{$ns}NestedSelectControl {
position: relative;
}
.#{$ns}NestedSelect {
position: relative;
@include input-border();

View File

@ -602,7 +602,7 @@ export default class NestedSelectControl extends React.Component<
return (
<Overlay
target={this.getTarget}
container={popOverContainer || findDOMNode(this)?.parentElement}
container={popOverContainer || (() => findDOMNode(this))}
placement={'auto'}
show
>