-
Notifications
You must be signed in to change notification settings - Fork 518
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
Reset doesn't set all values' 'ticked' property to false #556
Comments
I guess, you misunderstood For you to make your stuff working.
|
When I change externaly selected elements:
In my case selectedCategories, and when I open again the multi-select, then it's selected automaticaly old values. How I can solve it? I use this code for change the output-model EDIT: Fixed with: |
What should i do, if i want to set default values (i.e. set ticked = true on several values) on the start, but by clicking reset i want to set all the values to ticked = false?
Because for now, as i see in the code isteven-multi-select.js(4.0.0) when reset is clicked, the input model goes back to $scope.backUp which holds this default values with ticked = true.
P.S. onReset function doesn't save the day - even if i set all 'ticked' properties to false in the function, values from $scope.backUp are assigned to the input model (and $scope.backUp holds these true 'ticked' properties on some values) when reset is called.
The text was updated successfully, but these errors were encountered: