Skip to content

Commit

Permalink
Merge pull request angular-ui#506 from pderksen/tagging2
Browse files Browse the repository at this point in the history
Trim the trailing space left by a new tag's label.
  • Loading branch information
Brian Feister committed Dec 14, 2014
2 parents e8931b9 + 2187e98 commit 93434e1
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 93434e1

Please sign in to comment.