Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit c664181

Browse files
Fix _findApproxDupe tagging when using a primitive property binding on iuSelectMultiple directive.
A bug was caused when _findApproxDupe was trying to set "isTag" property on a privitive value (e.g. String). These types of values are received when $select.selected holds an array of privitive values (using key binding).
1 parent fa47fba commit c664181

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/uiSelectMultipleDirective.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,11 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
383383
// handle the object tagging implementation
384384
} else {
385385
var mockObj = tempArr[i];
386-
mockObj.isTag = true;
386+
if (angular.isObject(mockObj) {
387+
mockObj.isTag = true;
388+
}
387389
if ( angular.equals(mockObj, needle) ) {
388-
dupeIndex = i;
390+
dupeIndex = i;
389391
}
390392
}
391393
}

0 commit comments

Comments
 (0)