From c4ed9dbd5e5e8b6eed7cd49412fd0875bf2365af Mon Sep 17 00:00:00 2001
From: rahuljain-dev <rahul.jain@contractors.onbase.com>
Date: Mon, 14 Oct 2024 12:19:48 +0530
Subject: [PATCH] WEBUI-1504: Tags fix mixed case entry fix 2

---
 ui/widgets/nuxeo-selectivity.js    | 1 -
 ui/widgets/nuxeo-tag-suggestion.js | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/ui/widgets/nuxeo-selectivity.js b/ui/widgets/nuxeo-selectivity.js
index 2adb6ada5..03ad92cbd 100644
--- a/ui/widgets/nuxeo-selectivity.js
+++ b/ui/widgets/nuxeo-selectivity.js
@@ -7197,7 +7197,6 @@ typedArrayTags[weakMapTag] = false;
       }
 
       options.query = (query) => {
-        query.term= query.term.toLowerCase();
         if (query.term.length < this.minChars) {
           query.error(this.i18n('selectivity.minChars', this.minChars));
           return;
diff --git a/ui/widgets/nuxeo-tag-suggestion.js b/ui/widgets/nuxeo-tag-suggestion.js
index 63070d193..987d69dd7 100644
--- a/ui/widgets/nuxeo-tag-suggestion.js
+++ b/ui/widgets/nuxeo-tag-suggestion.js
@@ -237,7 +237,7 @@ import { escapeHTML } from './nuxeo-selectivity.js';
     }
 
     _newEntryFormatter(term) {
-      return { id: term, displayLabel: term, newTag: true };
+      return { id: term, displayLabel: term.toLowerCase(), newTag: true };
     }
 
     _addedTagHandler(entry) {