diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 4156bd3cc..4ca3c89f0 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -182,7 +182,7 @@ const MetadataEditor = createClass({ }, addTag : function(tag){ - this.props.metadata.tags = _.uniq([...this.props.metadata.tags, tag]); + this.props.metadata.tags = _.uniq([...this.props.metadata.tags, ...(tag.split(',').map((t)=>t.trim()))]); this.props.onChange(this.props.metadata); }, removeTag : function(tag){ @@ -216,7 +216,7 @@ const MetadataEditor = createClass({ renderTags : function(){ const tagElements = Object.values(this.state.tagContext).map((context, i)=>context.editing - ? { this.handleTagInputKeyDown(e, i); }}