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