Fixed Chrome issue: lost focus after selecting a value
This commit is contained in:
parent
6eee443d67
commit
45ee7340e5
3
src/js/select2/selection/base.js
vendored
3
src/js/select2/selection/base.js
vendored
@ -82,6 +82,9 @@ define([
|
|||||||
self.$selection.removeAttr('aria-owns');
|
self.$selection.removeAttr('aria-owns');
|
||||||
|
|
||||||
self.$selection.focus();
|
self.$selection.focus();
|
||||||
|
window.setTimeout(function () {
|
||||||
|
self.$selection.focus();
|
||||||
|
}, 0);
|
||||||
|
|
||||||
self._detachCloseHandler(container);
|
self._detachCloseHandler(container);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user