Pomax / react-onclickoutside

An onClickOutside wrapper for React components
MIT License
1.83k stars 187 forks source link

Unable to get property 'getInstance' of undefined or null reference #331

Open ehsangazar opened 5 years ago

ehsangazar commented 5 years ago

This issue has been happening on the website for quite a long time now Unable to get property 'getInstance' of undefined or null reference

In this line: var ref = this.instanceRef; return ref.getInstance ? ref.getInstance() : ref;

And this is a version we are using 6.7.1

Just in Browser Edge!

Let me know please how to resolve it please, thanks

tateana commented 4 years ago

the same issue with react-datepicker which uses react-onclickoutside

apsavin commented 4 years ago

@Pomax Looks like a dublicate of https://github.com/Pomax/react-onclickoutside/issues/271 I can't reproduce, but I see the error in our https://sentry.io/ monitoring tool - IE 11 and Edge only.

bockc commented 4 years ago

I also have this exception on Chrome. It only happens when I click in the window after a hot reload