From 3fa159ff2aaa2a58bcc7c112a276927860ea940e Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 26 Apr 2026 17:58:42 +0200 Subject: [PATCH] fix(loyalty): sanitize earn amount input on every keystroke Switch from type=number (leaks special chars via compose keys) to type=text with @input sanitizer that strips non-digit/non-dot characters and prevents multiple dots. Handles accented characters, paste, and compose key sequences. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/modules/loyalty/templates/loyalty/store/terminal.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/modules/loyalty/templates/loyalty/store/terminal.html b/app/modules/loyalty/templates/loyalty/store/terminal.html index 346286d2..c17f6b2f 100644 --- a/app/modules/loyalty/templates/loyalty/store/terminal.html +++ b/app/modules/loyalty/templates/loyalty/store/terminal.html @@ -212,9 +212,9 @@
EUR -