diff --git a/dependencies.json b/dependencies.json new file mode 100644 index 0000000000..7a8b537504 --- /dev/null +++ b/dependencies.json @@ -0,0 +1,17 @@ +{ + "recipesEndpoint": "", + "packages": [ + { + "requirement": "dev-IBX-8684-update-spinner as 4.6.x-dev", + "repositoryUrl": "https://github.com/ibexa/image-picker", + "package": "ibexa/image-picker", + "shouldBeAddedAsVCS": true + }, + { + "requirement": "dev-IBX-8684-update-spinner as 5.0.x-dev", + "repositoryUrl": "https://github.com/ibexa/tree-builder", + "package": "ibexa/tree-builder", + "shouldBeAddedAsVCS": true + } + ] +} \ No newline at end of file diff --git a/src/bundle/ui-dev/src/modules/common/taggify/taggify.js b/src/bundle/ui-dev/src/modules/common/taggify/taggify.js index a00a60cb44..61031d3584 100644 --- a/src/bundle/ui-dev/src/modules/common/taggify/taggify.js +++ b/src/bundle/ui-dev/src/modules/common/taggify/taggify.js @@ -17,14 +17,16 @@ const Taggify = forwardRef(({ hotKeys, allowDuplicates, onTagsChange, bottomHint let nextId = newTags.at(-1)?.id ?? 0; inputTags.forEach((inputTagContent) => { - if ((!allowDuplicates && isDuplicated(newTags, inputTagContent)) || !inputTagContent) { + const trimmedInputTagContent = inputTagContent.trim(); + + if ((!allowDuplicates && isDuplicated(newTags, trimmedInputTagContent)) || !trimmedInputTagContent) { return; } nextId++; newTags.push({ id: nextId, - content: inputTagContent, + content: trimmedInputTagContent, }); });