Support space (and more) in tag groups (#13589)

This commit is contained in:
Kenn Jacobsen
2022-12-16 14:23:31 +01:00
committed by nikolajlauridsen
parent 4d760a54c8
commit ab82549fd6

View File

@@ -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) {