coliff / bootstrap-ie11

Internet Explorer 11 compatibility solution for Bootstrap 5
https://coliff.github.io/bootstrap-ie11/
MIT License
96 stars 15 forks source link

Modal Bootstrap 5 is not working #88

Closed ltrtuan closed 3 years ago

ltrtuan commented 3 years ago

Hi I use https://cdn.jsdelivr.net/combine/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js but there is a error in my project Uncaught TypeError: bootstrap.Modal.getOrCreateInstance is not a function and Object doesn't support property or method 'closest'

coliff commented 3 years ago

Heya. The Bootstrap 5 modal is working on IE11 here: https://coliff.github.io/bootstrap-ie11/tests/#modal

Can you please test and see if you can resolve the issue by looking at that code. Make sure you have all the Polyfills as documented.

ltrtuan commented 3 years ago

Thanks for replying This is my screenshot http://prntscr.com/1pslcx1. IE version 21H1 is 11 ?

coliff commented 3 years ago

Yes, that's IE11. Does the modal work on my test page?

It works on IE11 on my Windows 10 (though I have a slightly older version): image

ltrtuan commented 3 years ago

No it not. i showe you the error in bootstrap.bundle.min.js image

coliff commented 3 years ago

I'll take a look into it tomorrow - it's working here though: image The syntax error in console is normal, but all components JS should work (except Offcanvas)

ltrtuan commented 3 years ago

Sorry, it works. I thought it is not working because of the error. Thanks for your support