Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

ngModel is not updated when using filters in options #6

Closed
mrico opened this issue Jun 6, 2014 · 1 comment
Closed

ngModel is not updated when using filters in options #6

mrico opened this issue Jun 6, 2014 · 1 comment
Assignees
Labels

Comments

@mrico
Copy link

mrico commented Jun 6, 2014

In the following example the scope variable selected.options will never be updated:

<div w11k-select
   w11k-select-options="option.id as option.name for option in options | orderBy:'name'"
   ng-model="selected.options">
</div> 
@mrico mrico added the bug label Jun 6, 2014
@pburgmer pburgmer self-assigned this Jun 10, 2014
@pburgmer
Copy link
Collaborator

Using a filter for options in w11-select < v0.4.4 causes a 'digest overflow'. The model is not updated because Angular stops updating all the data bindings after 10 digest lifecycles. w11k-select has to fix the 'digest overflow' and then the model should be updated.

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

No branches or pull requests

2 participants