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

IE 11 Selected value is not reflecting in select control #292

Closed
arunsathyan01 opened this issue May 8, 2015 · 4 comments
Closed

IE 11 Selected value is not reflecting in select control #292

arunsathyan01 opened this issue May 8, 2015 · 4 comments

Comments

@arunsathyan01
Copy link

IE 11 Selected value is not reflecting in select control
Console Error: Object doesn't support this action
File: dropkick.js, Line: 605, Column: 9

image

@wwilsman
Copy link
Collaborator

wwilsman commented May 8, 2015

Check the value of the select in the console; the selected attribute only applies to options which are initially selected when the DOM loads.

As for the console error, which version of Dropkick are you using?

@arunsathyan01
Copy link
Author

i am using 2.1

Console error fixed with this code ,

var customevt = document.createEvent('CustomEvent');
if ( !disabled ) {
customevt.initCustomEvent('change',true,true,null);
this.data.select.dispatchEvent(customevt);
}

@wwilsman
Copy link
Collaborator

wwilsman commented May 8, 2015

We've had quite a few problems with all IEs and that event bug. This will hopefully be getting fixed with the next release.

@Robdel12
Copy link
Owner

Closing this. Should be fixed with d1b3485

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

No branches or pull requests

3 participants