Trim whitespace

pull/802/head
Andrew Watkins 2017-01-26 17:03:07 -08:00
parent d2cfc10cbb
commit 52dd1a87f2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ const TagInput = React.createClass({
handleAddTag(e) {
if (e.key === 'Enter') {
e.preventDefault();
const newItem = e.target.value;
const newItem = e.target.value.trim();
const {tags, onAddTag} = this.props;
if (!this.shouldAddToList(newItem, tags)) {
return;