From 603bf36d79a4d533ad645c927912002b65286510 Mon Sep 17 00:00:00 2001 From: cbogdan0707 <31092097+cbogdan0707@users.noreply.github.com> Date: Wed, 16 Aug 2023 13:06:39 +0300 Subject: [PATCH] SITES-15335: handle id empty values input (#2571) Co-authored-by: bcenusa --- .../editor/clientlibs/htmlidvalidator/js/htmlIdValidation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/src/content/jcr_root/apps/core/wcm/components/commons/editor/clientlibs/htmlidvalidator/js/htmlIdValidation.js b/content/src/content/jcr_root/apps/core/wcm/components/commons/editor/clientlibs/htmlidvalidator/js/htmlIdValidation.js index 6e62c358a3..0713d3e4c8 100644 --- a/content/src/content/jcr_root/apps/core/wcm/components/commons/editor/clientlibs/htmlidvalidator/js/htmlIdValidation.js +++ b/content/src/content/jcr_root/apps/core/wcm/components/commons/editor/clientlibs/htmlidvalidator/js/htmlIdValidation.js @@ -39,8 +39,8 @@ }); var element = $(el); var currentVal = element.val(); - /* Handle dialog re-submission */ - if (currentVal === preConfiguredVal) { + /* Handle empty values or dialog re-submission */ + if (!currentVal || currentVal === preConfiguredVal) { return; } var url = pagePath + ".html?wcmmode=disabled";