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

Modal中进行Select选择,Modal自动隐藏 #27123

Closed
1 task
ghost opened this issue Oct 13, 2020 · 2 comments
Closed
1 task

Modal中进行Select选择,Modal自动隐藏 #27123

ghost opened this issue Oct 13, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2020

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

分别将antd版本切换成4.7.0和4.6.6,查看Modal中点击Select某一项后的效果

What is expected?

Select选择某一项后,Modal不要自动隐藏

What is actually happening?

Select选择某一项后,Modal自动隐藏

Environment Info
antd 4.7.0
React
System
Browser Chrome

如果将maskClosable={false}加入到Modal,则不会出现异常

看起来在4.7.0版本中,Modal中点击Select选项会判定为点击了蒙层

@yoyo837
Copy link
Contributor

yoyo837 commented Oct 13, 2020

删除node_modules 和lock文件 重新安装试试

Duplicate of #27084

@afc163 afc163 closed this as completed Oct 13, 2020
@afc163
Copy link
Member

afc163 commented Oct 13, 2020

Fixed in react-component/dialog#204

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