(select-one) search = false, click & show dropdown give focus

This commit is contained in:
Simon Babay 2016-08-01 15:44:01 +02:00
parent 611480ab3b
commit 8d3648e763

View file

@ -860,6 +860,10 @@ export class Choices {
if(this.passedElement.type !== 'text' && !this.dropdown.classList.contains(this.config.classNames.activeState)) {
// For select inputs we always want to show the dropdown if it isn't already showing
this.showDropdown();
if(this.passedElement.type === 'select-one' && !this.canSearch){
this.containerOuter.focus();
}
}
// If input is not in focus, it ought to be