joshwnj / react-visibility-sensor

Sensor component for React that notifies you when it goes in or out of the window viewport.
MIT License
2.33k stars 195 forks source link

Unspecified error => Internet Explorer #99

Open Milos5611 opened 7 years ago

Milos5611 commented 7 years ago

Hi All,

I have a strange issue only in IE, version 11 i am testing. I get Unspecified error in infinite loop. Anyone encounter similar problem ?

mysteryhistory commented 6 years ago

Hi :)

This issue still isn't fixed?

joshwnj commented 5 years ago

@mysteryhistory are you able to reproduce the issue?

nicknish commented 5 years ago

Hi Josh and friends.

I think I found the issue, but the original Internet Explorer issue is no longer public.

In IE<=11, calling getBoundingClientRect on an element outside of the DOM throws an unspecified error instead of returning a 0x0 DOMRect

I think other devs have simply wrapped the op in a try {} catch {}

Image 2019-04-03 at 1 14 17 PM https://caniuse.com/#feat=getboundingclientrect > Known Issues