From d173a99fc83d14e7ffaf78f894fb8474dd49fd55 Mon Sep 17 00:00:00 2001 From: Kenn Jacobsen Date: Fri, 16 Dec 2022 14:23:31 +0100 Subject: [PATCH] Support space (and more) in tag groups (#13589) --- .../directives/components/tags/umbtagseditor.directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/tags/umbtagseditor.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/tags/umbtagseditor.directive.js index 8238a2be66..7ae96e0cd5 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/tags/umbtagseditor.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/tags/umbtagseditor.directive.js @@ -92,7 +92,7 @@ var sources = { //see: https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md#options // name = the data set name, we'll make this the tag group name + culture - name: vm.config.group + (vm.culture ? vm.culture : ""), + name: (vm.config.group + (vm.culture ? vm.culture : "")).replace(/\W/g, '-'), display: "text", //source: tagsHound source: function (query, syncCallback, asyncCallback) {