From 2dd8838852ca4b164e93974347fd36b4cad4366c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sat, 20 Mar 2021 15:56:25 +0100 Subject: [PATCH] Report validity issues of avatar input right away This helps discovering the actual error message. Thanks @zash. --- snikket_web/templates/user_profile.html | 1 + 1 file changed, 1 insertion(+) diff --git a/snikket_web/templates/user_profile.html b/snikket_web/templates/user_profile.html index c9f76d0..cced91b 100644 --- a/snikket_web/templates/user_profile.html +++ b/snikket_web/templates/user_profile.html @@ -44,6 +44,7 @@ var warning_header = this.dataset.warningHeader; var warning_text = this.dataset.maxsizeWarning; this.setCustomValidity(warning_text); + this.reportValidity(); this.value = null; } else { this.setCustomValidity("");