forked from CGM_Public/pretix_original
Fix JS-error on custom select2 focus handler
This commit is contained in:
@@ -565,7 +565,7 @@ var form_handlers = function (el) {
|
|||||||
},
|
},
|
||||||
}).on("select2:select", function () {
|
}).on("select2:select", function () {
|
||||||
// Allow continuing to select
|
// Allow continuing to select
|
||||||
if ($s.hasAttribute("multiple")) {
|
if ($s[0].hasAttribute("multiple")) {
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
$s.parent().find('.select2-search__field').focus();
|
$s.parent().find('.select2-search__field').focus();
|
||||||
}, 50);
|
}, 50);
|
||||||
|
|||||||
Reference in New Issue
Block a user