Select first non-disabled item

master
Vitaliy Filippov 10 years ago
parent 6fc3befa52
commit 1022acc34f
  1. 2
      hinter.js
  2. 2
      hinter.min.js

@ -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();
}

2
hinter.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save