Skip to content

Commit 05fda66

Browse files
YoYuUmrisadams
authored andcommitted
fix(a11y): keep focus on input after selecting an dropdown item
Fixes second example of #1926. To be accessible, it should be possible to keep using the input easily after selecting and item on multi-select input. Previously, when using mousedown to pick an item from the dropdown, the input would lose focus and ignoring blur wasn't enough in order to keep the input focused.
1 parent a917ebd commit 05fda66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/selectize.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,9 @@ $.extend(Selectize.prototype, {
692692
var self = this;
693693

694694
if (self.ignoreBlur) {
695+
if (self.isFocused) {
696+
self.focus();
697+
}
695698
return;
696699
}
697700

0 commit comments

Comments
 (0)