From e0dec712628ebc4f0d04f5072a53984d60711eed Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 6 May 2025 13:04:46 +0200 Subject: [PATCH] add comment why onblur is needed --- src/pretix/static/pretixpresale/js/ui/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/ui/main.js b/src/pretix/static/pretixpresale/js/ui/main.js index c38b1c8c2..85f615b5f 100644 --- a/src/pretix/static/pretixpresale/js/ui/main.js +++ b/src/pretix/static/pretixpresale/js/ui/main.js @@ -111,7 +111,7 @@ var form_handlers = function (el) { }).on('dp.change', function (e) { container.removeClass("has-error"); alert.text(""); - }).on('blur', function (e) { + }).on('blur', function (e) {// dp.change does not trigger when changed to empty string - although documentation notes otherwise if (!this.value) { container.removeClass("has-error"); alert.text("");