Skip to content

support selecting individual values #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alxyuu
Copy link

@alxyuu alxyuu commented Sep 8, 2016

No description provided.

@@ -101,7 +101,7 @@ angular.module("ui.multiselect", ["multiselect.tpl.html"])
//when directive initialize, newVal usually undefined. Also, if model value already set in the controller
//for preselected list then we need to mark checked in our scope item. But we don't want to do this every time
//model changes. We need to do this only if it is done outside directive scope, from controller, for example.
if(angular.isDefined(newVal)) {
if(newVal !== oldVal) {
Copy link
Author

Choose a reason for hiding this comment

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

when the model is set to undefined, you should still update the selection. this still handles the initialization case when both newVal and oldVal are undefined.

@alxyuu
Copy link
Author

alxyuu commented Sep 8, 2016

when selecting an individual attribute instead of the entire object, compare-by can not be used at the same time. no straightforward fix for this, but maybe the documentation can be updated to indicate the incompatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant