react-onclickoutside: Mobile Chrome: Cannot read property 'getInstance' of null

This is very similar to #193.

This error appears on every click in the page after component has been unmounted. Reproduced in Chrome 51 and below on Android. Can’t be reproduced on desktop and in latest Chrome on Android versions (61).

Affected version: 6.6.0. Downgrade to 6.5.0 fixed this problem for me. React version: 16 In my case this happens in webpack build without HMR. Stack trace:

at onClickOutside.getInstance (vendor.js?hash=0488b695b563803f5fe3:39899:17)
at onClickOutside._this.__outsideClickHandler (vendor.js?hash=0488b695b563803f5fe3:39820:30)
at HTMLDocument.handlersMap.(anonymous function)

I have created a simple project that shows the issue: https://github.com/the-owl/react-onclickoutside-issue-repro Run npm start & open the page in Chrome on Android <= 51, alert will appear on error.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15

Most upvoted comments

@dipnlik I believe I have fixed your issue (already released and tested on your repro project)

@the-owl I dont think this was the same issue that you have experienced, but a confirmation from you would be great before I start working on your case.