Permalink
Browse files

fixed select handling (double jump through list) in ie 7 and 8

  • Loading branch information...
1 parent eaa9c52 commit aecbfae04f90a402d956e131912ff08f912a9d6d @mediavrog committed Dec 17, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 cfe/modules/select/cfe.module.select.js
View
3 cfe/modules/select/cfe.module.select.js
@@ -276,7 +276,8 @@ cfe.module.Select = new Class({
updateOption: function(by)
{
- this.o.selectedIndex = (this.highlightedIndex+by).limit(0,this.origOptions.length-1);
+ // fix for IE 7
+ if(this.containerWrapper.retrieve("hidden") != true && !Browser.Engine.trident5) this.o.selectedIndex = (this.highlightedIndex+by).limit(0,this.origOptions.length-1);
this.o.fireEvent("change");
},

0 comments on commit aecbfae

Please sign in to comment.