Internet explorer 11 support
Serzhs opened this issue · 2 comments
When I test this plugin in IE 11 I get error 'Symbol' is undefined
, after inserting Symbol polyfill I get a new error:
Unable to get property 'getBoundingClientRect' of undefined or null reference
Is it possible to make this work in IE11, because it's our requirement in project i'm working on
I don't support IE 11 in my projects. But I will happily accept a PR for this.
I spent a few minutes looking into this. I think you need to import a polyfill for
Element.prototype.matches
and Element.prototype.closest
.
I added polyfill.io on the demo site and it seems to work with the following config polyfills:
https://polyfill.io/v3/polyfill.js?features=es5,es6,default,Element.prototype.matches,Element.prototype.closest&flags=gated