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

当popup嵌套时,关闭modal层级错乱问题 #1481

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KuiShang
Copy link

@KuiShang KuiShang commented Oct 15, 2018

Please makes sure these boxes are checked before submitting your PR, thank you!

发现 [类popup] 组件不支持嵌套,如果嵌套则会再关闭内层的popup组建时候 不能正确的关闭modal遮罩层

举个栗子:

再 popup内部有一个dateTime picker 组建,当我们展开关闭dateTime picker组建时候遮罩位置仍然会盖住原来的页面

解决方案:

再关闭modal的时候 判断其是否是被嵌套,如果是则将modal 通过appendChild 到最外层的parentNote下面

  • Make sure you follow the contributing guide.
  • Rebase before creating a PR to keep commit history clear.
  • Add some descriptions and refer relative issues for you PR.

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

Successfully merging this pull request may close these issues.

None yet

1 participant