Skip to content

Commit 93434e1

Browse files
author
Brian Feister
committed
Merge pull request angular-ui#506 from pderksen/tagging2
Trim the trailing space left by a new tag's label.
2 parents e8931b9 + 2187e98 commit 93434e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/select.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@
410410
item = ctrl.tagging.fct(ctrl.search);
411411
// if item type is 'string', apply the tagging label
412412
} else if ( typeof item === 'string' ) {
413-
item = item.replace(ctrl.taggingLabel,'');
413+
// trim the trailing space
414+
item = item.replace(ctrl.taggingLabel,'').trim();
414415
}
415416
}
416417
}

0 commit comments

Comments
 (0)