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

TypeError: Cannot read property 'getParent' of undefined #116

Closed
saresh-krish opened this issue Jun 8, 2020 · 1 comment
Closed

TypeError: Cannot read property 'getParent' of undefined #116

saresh-krish opened this issue Jun 8, 2020 · 1 comment

Comments

@saresh-krish
Copy link

Hi
I got this error in when i click the Modal popup event .
I thick this problem come from the latest package of 'rc-util'.
if (!windowIsUndefined && this.getParent() === document.body) { // 离开时不会 render, 导到离开时数值不变,改用 func 。。 openCount = visible && openCount ? openCount - 1 : openCount; }
path: node_modules/rc-util/es/PortalWrapper.js

how you fixed this?
i got the same issue on Liver server and local.
any idea to fix this problem.

Environment

"antd": "^4.1.2",
"react": "^16.13.1",
System - Ubuntu 18.04.3 LTS
Browser - Version 79.0.3945.130 (Official Build) (64-bit)

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 a pull request may close this issue.

2 participants