catch-ie-get-bounding-client-rect-errors
v1.0.1
Published
Modern browsers don't throw an error when calling getBoundingClientRect on an element that hasn't been attatched to the dom. This catches Internet Explorer's errors that are thrown when calling this method.
Downloads
49
Readme
This package catches errors thrown by Internet Explorer's getBoundingClientRect method.
This method patches the getBoundingClientRect method when you include it. I only include this on my polyfills bundle as I don't want to mess with other browsers getBoundingClientRect method.
To use
yarn add catch-ie-get-bounding-client-rect-errors
import 'catch-ie-get-bounding-client-rect-errors';