Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 Popover 组件里使用 Select 组件,拖动 Select 组件的滚动条,打开的 Popover 自动关闭了 #29974

Closed
1 task
condorheroblog opened this issue Mar 31, 2021 · 3 comments

Comments

@condorheroblog
Copy link

condorheroblog commented Mar 31, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • 打开 Popover 组件
  • 拖动 Select 组件的滚动条
  • 打开的 Popover 自动关闭了

这是演示出现的效果图:

https://z3.ax1x.com/2021/03/31/ckTYWD.gif

在线链接:https://z3.ax1x.com/2021/03/31/ckTYWD.gif

What is expected?

在 Popover 里面 拖动 Select 组件的滚动条不关闭 Popover 组件

What is actually happening?

在 Popover 组件里拖动 Select 组件的滚动条, Popover 组件关闭了

Environment Info
antd 4.15.0
React 16.14.0
System MacOS 10.14.6
Browser 89.0.4389.90(正式版本) (x86_64)
@condorheroblog condorheroblog changed the title 在 Popover 组件里使用 Select 组件,拖动 Select 组件的滚动条,打开的 Popover 组件关闭了 在 Popover 组件里使用 Select 组件,拖动 Select 组件的滚动条,打开的 Popover 自动关闭了 Mar 31, 2021
@yoyo837
Copy link
Contributor

yoyo837 commented Mar 31, 2021

请使用 getPopupContainer

@yoyo837 yoyo837 closed this as completed Mar 31, 2021
@yoyo837
Copy link
Contributor

yoyo837 commented Mar 31, 2021

@yoyo837
Copy link
Contributor

yoyo837 commented Mar 31, 2021

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants