Select first non-disabled item
parent
6fc3befa52
commit
1022acc34f
|
@ -165,6 +165,8 @@ SimpleAutocomplete.prototype.replaceItems = function(items, append)
|
|||
this.disable();
|
||||
return;
|
||||
}
|
||||
while (this.selectedIndex < items.length && items[this.selectedIndex][2])
|
||||
this.selectedIndex++;
|
||||
this.hintLayer.innerHTML = this.prompt ? '<div class="hintPrompt">'+this.prompt+'</div>' : '';
|
||||
this.enable();
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue