mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-21 06:56:34 +02:00
(select-one) fix : keep focus after item is selected
This commit is contained in:
parent
4e2b330659
commit
c18b9f81e4
|
@ -554,6 +554,11 @@ export class Choices {
|
|||
console.error('callbackOnChange: Callback is not a function');
|
||||
}
|
||||
}
|
||||
|
||||
// Keep focus on select-one element
|
||||
if(this.passedElement.type === 'select-one'){
|
||||
this.containerOuter.focus();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue