From 071942e095f0928d373cf7ecc73c040a0ee8f1bb Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Fri, 18 Sep 2026 16:59:03 +0200 Subject: [PATCH] Move content-placeholder handling out of form_handlers --- src/pretix/static/pretixcontrol/js/ui/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pretix/static/pretixcontrol/js/ui/main.js b/src/pretix/static/pretixcontrol/js/ui/main.js index 0ddb947ead..f18ca0bfdc 100644 --- a/src/pretix/static/pretixcontrol/js/ui/main.js +++ b/src/pretix/static/pretixcontrol/js/ui/main.js @@ -739,7 +739,9 @@ let form_handlers = function (el) { el.find('input[name*=question], select[name*=question]').change(questions_toggle_dependent) questions_toggle_dependent() questions_init_photos(el) +} +function setup_placeholders() { let lastFocusedInput $(document).on('focusin', 'input, textarea', function (e) { lastFocusedInput = e.target @@ -1083,6 +1085,7 @@ $(function () { setup_basics($('body')) form_handlers($('body')) + setup_placeholders() $(document).trigger('pretix:bind-forms') $('#ajaxerr').on('click', '.ajaxerr-close', ajaxErrDialog.hide)