Skip to content
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

Not working on IE 11 #350

Closed
quienti opened this issue Sep 19, 2017 · 2 comments · Fixed by #353
Closed

Not working on IE 11 #350

quienti opened this issue Sep 19, 2017 · 2 comments · Fixed by #353
Assignees
Labels

Comments

@quienti
Copy link

quienti commented Sep 19, 2017

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.

@quienti
Copy link
Author

quienti commented Sep 20, 2017

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

@Robdel12 Robdel12 self-assigned this Sep 21, 2017
@Robdel12
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants