Aurelia-validation polyfill BootstrapFormRenderer


#1

I want to use BootstrapFormRenderer with aurelia-validation on IE. As they say in the doc, i need to use a polyfill to make it work. My question is how do i install the polyfill in aurelia ??

BoostrapFormRenderer doc: https://aurelia.io/docs/plugins/validation#custom-renderers
polyfill link: https://github.com/jonathantneal/closest


#2

Are you using webpack or CLI?
With webpack it’s just npm i element-closest --save and import "element-closest";


#3

I am using CLI with RequireJS


#4

Should be no different, install with npm and add to the vendor bundle dependencies or prepend section


#5

I already tried it but there is no way to make it work it really has strange behaviors