First off, thanks for this. It's mostly perfect & very easy to use.
I found that IE 7-9 throws an error, "Unable to get value of the property 'width': object is null or undefined" -- line 74. This only happens when clicking directly on the arrow icon or the placeholder text itself when the page is first loaded. Clicking on any other portion of the menu appears to circumvent this problem.
Removing the clickEvent condition from lines 359-375, so that we're only using the "else" portion of the code, appears to resolve the issue.
if (clickEvent !== 'touchend') {
//This portion doesn't work
return function(e) {
// toggle the custom select menu if enabled
disableDefault(e);
toggleMenu();
}
} else {
//This portion does work
return function(e) {
disableDefault(e);
var currentPlaceHolder = menu.getCurrentPlaceHolder();
if (currentPlaceHolder) {
currentPlaceHolder[0].className = settings.classes.placeholder.container.base;
}
menu.bondToSelect(placeHolder, selectEl);
toggleMenu();
}
}
I'm not sure what the implications of doing this are, but it appears to work for me.