-
Notifications
You must be signed in to change notification settings - Fork 45.6k
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
Bug: React 17 upgrade causes "Cannot read property 'removeEventListener' of null" #20080
Comments
👋Could you please share a reproducible example on https://codesandbox.io or as a repo? |
Could it be this? |
Probably ! Unfortunately seems to be coming from a library so we will check with them to fix this. |
We had the same issue, can confirm it came from rc-virtual-list which is an Ant Design Select dependency. |
…ist", refer to this "facebook/react#20080"
As explained on this link (link from above),
I do not see any eslint warning related to this. |
I'm facing the same problem while testing a TreeSelect (antd) component with jest and React Testing Library. How did you solve this issue ? @nvbinh |
We have upgraded to React 17 and since then we get Cannot read property 'removeEventListener' of null.
Mostly happens when component updates after state change.
React version: 17
Steps To Reproduce
The current behavior
The expected behavior
No error
The text was updated successfully, but these errors were encountered: