From 2f79ae1ece6b852b4bce71b4a018703ef05c3b90 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 7 Feb 2024 09:19:19 +0100 Subject: [PATCH] Form/Validation bugfix: dismiss cache problem (correct solution) --- public/js/components/Form/Validation.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/js/components/Form/Validation.js b/public/js/components/Form/Validation.js index c7d89ad8f..fd6dabe16 100644 --- a/public/js/components/Form/Validation.js +++ b/public/js/components/Form/Validation.js @@ -1,5 +1,3 @@ -var i = 0; - export default { inject: [ '$registerToForm' @@ -24,7 +22,8 @@ export default { feedback = []; if (!Array.isArray(feedback)) feedback = [feedback]; - this.feedback[valid ? 'success' : 'danger'] = feedback; + const ts = Date.now(); + this.feedback[valid ? 'success' : 'danger'] = feedback.map(msg => [msg, ts]); } }, mounted() { @@ -33,7 +32,7 @@ export default { }, template: `