-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE11 #315
Comments
I also have been running into issues with getting Micromodal to work in IE 11, but after a few edits I was able to get this working... Here's how I went about fixing it:
At this point, I was still getting the invalid spread error. After a bit more debugging, I found that what was happening is Micromodal was calling its function In tracing my way through, I noticed that prior to throwing this error, the function What I did change, was
Now, if I hope this information is useful to @ghosh to determine if a fix needs to be made, or can shed some light on something i may be doing wrong in my implementation. |
After working with this further, the fixes I describe in my previous comment only seem to have resolved the error when calling I've worked around this in one instance by wrapping the method in a try/catch block, and while the modal does appear, I think this prevents all of Micromodal's features from working correctly in IE. Happy to help implement a solution for this, if someone can point me in the right direction to get started. |
What is the state of this issue? We still would like to support IE11 but at the moment this is not possible. Any news? |
Include this in your head and the modal library will work as is:
Source: https://polyfill.io/ |
Oh dear, I know...
But still I have to ask; what does it take to get Micromodal to work on IE11? I can guess this is linked to ES6 new stuff like spread operator but I wondered anyway.
Thanks a lot for this module which is super useful.
The text was updated successfully, but these errors were encountered: