HandleWindowClick Listener Chrome 74 errors
See original GitHub issueAfter upgrading Chrome to version 74 today began to get very inconsistent failures dealing with HandleWindowClickListener occasionally failing in several places, resulting in a white screen of death. It seems at some point when the event listeners attempt to remove themselves, failures will occur in this area of the code:
(0, _handleWindowClickListeners2.default)(this._handleOutsideClick, false);
This has happened for us in both the Layover’s componentWillUnmount, as well as the DateContainer’s ComponentDidUpdate
Exact error thrown is the following: “TypeError: Cannot convert undefined or null to object”
Images/Screenshots
Link to a gist or code sample where the issue can be reproduced
Unfortunately reproducing the issue is difficult. Best pattern we’ve found is a page with many autocompletes, and selecting items for multiple of them. Eventually the error is generally thrown. Frequently refreshing the page prevents the issue from reproducing as far as we can tell.
Version
- React - 16.7.0
- React-MD - 1.8.0
- Browser - Chrome 74
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
This fix should now be released as 1.10.2.
I also credited you @jacksonStone for the fix here and here. Let me know if you’d like different credit or something else.
@kylewm If this problem still occurs in your app, let me know and I’ll reopen this and try another fix.