From bed252ed80cdea0f5fc7658a13ee34c3eb1b5a59 Mon Sep 17 00:00:00 2001 From: kmitresse Date: Sat, 27 Apr 2024 14:16:32 +0200 Subject: [PATCH] fix: devWeb - profile: remove style is-danger on input when notification close --- .../Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag b/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag index bf51de8..7fce5ef 100644 --- a/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag +++ b/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag @@ -161,7 +161,10 @@ notification.appendChild(notificationMessage); document.body.appendChild(notification); console.log("je suis bien dans la fonction mais la notification ne s'affiche pas") - setTimeout(() => notification.remove(), 5010); + setTimeout(() => { + notification.remove() + inputs.forEach(input => input.classList.remove("is-danger")); + }, 5010); } /**