From 086c06ab513626abaa65c22791cf5236cb8fc7ce Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Mon, 29 Jan 2024 12:08:03 +0400 Subject: [PATCH] New Module Modal: Error messages are stacked [SCI-10059 --- app/assets/javascripts/projects/canvas.js.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/projects/canvas.js.erb b/app/assets/javascripts/projects/canvas.js.erb index 5cbcfa281..b18f66542 100644 --- a/app/assets/javascripts/projects/canvas.js.erb +++ b/app/assets/javascripts/projects/canvas.js.erb @@ -1372,6 +1372,9 @@ function bindNewModuleAction(gridDistX, gridDistY) { function handleNewNameConfirm(ev) { var input = $("#new-module-name-input"); + + input.parent().removeClass("has-error"); + input.next("span.help-block").remove(); // Validate module name var moduleNameValid = textValidator(ev, input, <%= Constants::NAME_MIN_LENGTH %>, <%= Constants::NAME_MAX_LENGTH %>,