Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngOptions): ensure that tracked properties are always watched #11784

Conversation

petebacondarwin
Copy link
Contributor

Commit 47f9fc3 failed to account for changes to
the tracked value of model items in a collection where the select was multiple.

See #11743 (comment)

Commit 47f9fc3 failed to account for changes to
the tracked value of model items in a collection where the select was `multiple`.

See angular#11743 (comment)
scope.$watch(
function() { return ngOptions.getTrackByValue(ngModelCtrl.$viewValue); },
function() { ngModelCtrl.$render(); }
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So now, when the select is not multiple, there is only a simple watch on the tracked value.

netman92 pushed a commit to netman92/angular.js that referenced this pull request Aug 8, 2015
Commit 47f9fc3 failed to account for changes to
the tracked value of model items in a collection where the select was `multiple`.

See angular#11743 (comment)

Closes angular#11784
@petebacondarwin petebacondarwin deleted the ng-options-multi-track-by branch November 24, 2016 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants