Skip to content

Commit

Permalink
Trim the trailing space left by a new tag's label.
Browse files Browse the repository at this point in the history
  • Loading branch information
pderksen committed Dec 12, 2014
1 parent aa13ee3 commit 2187e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@
item = ctrl.tagging.fct(ctrl.search);
// if item type is 'string', apply the tagging label
} else if ( typeof item === 'string' ) {
item = item.replace(ctrl.taggingLabel,'');
// trim the trailing space
item = item.replace(ctrl.taggingLabel,'').trim();
}
}
}
Expand Down

0 comments on commit 2187e98

Please sign in to comment.