mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fix JS-error on custom select2 focus handler
This commit is contained in:
committed by
GitHub
parent
603547f783
commit
61d5e66ad4
@@ -565,7 +565,7 @@ var form_handlers = function (el) {
|
||||
},
|
||||
}).on("select2:select", function () {
|
||||
// Allow continuing to select
|
||||
if ($s.hasAttribute("multiple")) {
|
||||
if ($s[0].hasAttribute("multiple")) {
|
||||
window.setTimeout(function () {
|
||||
$s.parent().find('.select2-search__field').focus();
|
||||
}, 50);
|
||||
|
||||
Reference in New Issue
Block a user