Skip to content

Commit 137915e

Browse files
committed
If tagging mode is activate, do not check values
Motivation: Fix angular-ui#540 The tagging mode is designed to allow new values to be added to the model. It does not make sense to check those values against the list of choices when going from model --> view.
1 parent bacb9d0 commit 137915e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/select.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@
10041004
return false;
10051005
};
10061006
if (!inputValue) return resultMultiple; //If ngModel was undefined
1007+
if ($select.tagging.isActivated) return inputValue;
10071008
for (var k = inputValue.length - 1; k >= 0; k--) {
10081009
if (!checkFnMultiple($select.selected, inputValue[k])){
10091010
checkFnMultiple(data, inputValue[k]);

0 commit comments

Comments
 (0)