Robdel12 / DropKick

A JavaScript plugin for creating beautiful, accessible, and painless custom dropdowns.

Home Page:http://dropkickjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working on IE 11

quienti opened this issue · comments

Version of Dropkick: 2.2.0

Expected Behavior

Working on IE 11

Actual Behavior

Not working on IE 11, I have not problem with another browser
untitled 1

Impossible to change select.

After investigate, I have find a solution

Change this line
https://github.com/Robdel12/DropKick/blob/master/src/dropkick.js#L604

With

//this.data.select.dispatchEvent( new CustomEvent("change", {bubbles: this.data.settings.bubble}));
var evt = document.createEvent("HTMLEvents");
evt.initEvent("change", true, true);
this.data.select.dispatchEvent(evt);

And It's working find

Thanks for the bug! I'm going to see if I can get to this tonight or over the weekend