mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 13:06:34 +02:00
(select-one) search = false, click & show dropdown give focus
This commit is contained in:
parent
611480ab3b
commit
8d3648e763
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue