React: Bug: React 17 upgrade causes "Cannot read property 'removeEventListener' of null"

Created on 22 Oct 2020  路  4Comments  路  Source: facebook/react

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

  1. Upgrade to React 17
  2. Change page

The current behavior

Screenshot 2020-10-22 at 17 34 02

The expected behavior

No error

Unconfirmed

Most helpful comment

All 4 comments

馃憢Could you please share a reproducible example on https://codesandbox.io or as a repo?

Probably ! Unfortunately seems to be coming from a library so we will check with them to fix this.
Thanks for the help.
Cheers

We had the same issue, can confirm it came from rc-virtual-list which is an Ant Design Select dependency.
We resolved it by using rc-virtual-list 3.2.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zpao picture zpao  路  3Comments

Prinzhorn picture Prinzhorn  路  3Comments

trusktr picture trusktr  路  3Comments

hnordt picture hnordt  路  3Comments

zpao picture zpao  路  3Comments