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

Commit fcd9bc5

Browse files
committed
fix(tagging): infite digest loops when name is similar
Resolves issue where isDisabled was running for tags and causing a infite loop to occur if the new tag value included a previous value. For example: tag1: "a" tag2: "aa" Fixes #1693
1 parent b95bf9f commit fcd9bc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/uiSelectController.js

+2
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ uis.controller('uiSelectCtrl',
351351

352352
if (itemIndex >= 0 && (angular.isDefined(ctrl.disableChoiceExpression) || ctrl.multiple)) {
353353

354+
if (item.isTag) return false;
355+
354356
if (ctrl.multiple) {
355357
isDisabled = _isItemSelected(item);
356358
}

0 commit comments

Comments
 (0)