Skip to content

Commit 10ee076

Browse files
jasonthomasgrayuser378230
authored andcommitted
fix(lockedItems): Properly unlock locked items when lock conditions change
Previously when the lock expression value changes from true to false the locked value was not removed from the locked list. Closes angular-ui#1824
1 parent 3b00c3f commit 10ee076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uiSelectController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ uis.controller('uiSelectCtrl',
430430
ctrl.close(skipFocusser);
431431
return;
432432
}
433-
}
433+
}
434434
_resetSearchInput();
435435
$scope.$broadcast('uis:select', item);
436436

@@ -506,7 +506,7 @@ uis.controller('uiSelectCtrl',
506506
}
507507

508508
if (!isLocked && lockedItemIndex > -1) {
509-
lockedItems.splice(lockedItemIndex, 0);
509+
lockedItems.splice(lockedItemIndex, 1);
510510
}
511511
}
512512

0 commit comments

Comments
 (0)