When the function Drupal.jsAS.prototype.populate is called in activeselect.js it populates right the
element, but in IE the texts are shown empty.
To make a quick fix i did:
var opt = new Option(text, value, false, selected);
opt.innerText = text;
$(this.targets[targetIndex]).append(opt);
Where before was:
$(this.targets[targetIndex]).append(new Option(text, value, false, selected));
And works correctly in Firefox, IE 6 and IE 7
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | activeselect-IE_bug.patch | 981 bytes | floretan |
Comments
Comment #1
js1 commentedThis seems to fix my IE7 problem. Safari and Firefox 2.x still works.
Comment #2
tostinni commentedWorks for me on IE6,7 FF2 and Opera 9 (unless there's some extra empy lines, but I'm pretty sure this is an Opera bug).
Comment #3
hanno commentedworked for me as well. thanks for this bug report.
Comment #4
floretan commentedThis is indeed a solution, but not a patch.
Here's a patch.
Comment #5
priyar commentedthanks for giving this solution
Comment #6
johnhanley commentedConfirms the patch solves the IE6/IE7 issue (and continues to work with FF3 as well.)
Any reason why this patch hasn't been rolled into a new release?
Comment #7
hazaThis version of Active Select is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.