djibe / material

Material Design 2 for Bootstrap 4 (active fork of Daemonite Material)
https://djibe.github.io/material/
MIT License
68 stars 11 forks source link

Method closest not available in IE #22

Closed lgemeinhardt closed 3 years ago

lgemeinhardt commented 3 years ago

IE 11 shows the following error (while clicking buttons like https://djibe.github.io/material/docs/4.6/material/buttons/):

SCRIPT438: Object doesn't support property or method 'closest' ripplet.js (26,11)

tbuyle commented 3 years ago

On the other hand, Microsoft itself will not support IE11 in their own online app anymore (Teams since 2020-11-30 and O365 as of 2021-08-17).

djibe commented 3 years ago

Hi, I'll work on it tomorrow.

djibe commented 3 years ago

Gosh, I reworked the rollup.config.js for days but still no polyfills for IE10.

It looks like I have to try with: @babel/plugin-transform-runtime

If you can try this with latest commits. https://github.com/djibe/material/blob/master/build/rollup.config.js

Thanks

djibe commented 3 years ago

Fixed in latest commit. Use material.min.js from github.

Babel doesn't polyfill DOM methods like closest(). I had to import a specific polyfill.

lgemeinhardt commented 3 years ago

Looks good for me (I will close my PR) ... Thank you very much!