TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
247 stars 102 forks source link

b:inputTags broken on IE #1080

Closed jaberu closed 5 years ago

jaberu commented 5 years ago

I'm trying to use b:inputText with tags to edit mulitple labels. However the component is not rendered on IE (but for Chrome). On IE 11 I see an error in JS Console LOG: image I'm using bootsfaces 1.4.1

jaberu commented 5 years ago

I had the same issue in another context The solution on stackoverflow: https://stackoverflow.com/a/30867255 might work here as well.

stephanrauh commented 5 years ago

Should it be so easy? My approach was to use all the polyfills from my Angular projects.

stephanrauh commented 5 years ago

I didn't find the source of the Angular polyfills yet. So I've taken the polyfills file from one of my Angular projects. Unzip it, copy it to your project. Do not use the resources folder, but the regular src/main/webapps folder. Assuming you're putting it into the root folder, import it like so in your XHTML file:

<script src="polyfills-es5.js" nomodule></script>

Notice the nomodule bit: it ensures IE11 and below load the script, but no other browser.

I'll close the ticket now. But don't hesitate to reach out to us if that doesn't work - we're still listening to this ticket, even after closing it!

polyfills-es5.js.zip