angular-strap icon indicating copy to clipboard operation
angular-strap copied to clipboard

bs-select inside ng-repeat: $watch always one change behind

Open jhunken opened this issue 12 years ago • 1 comments

I'm trying to use bs-select inside of an ng-repeat, but this appears to be preventing my $watch from working properly. In the following example if you open a console while you change scores, I'd expect the console.log to show the current scores when you change a score. Instead, it is always showing the previous values:

http://plnkr.co/edit/QulTWsQnTAq1AC61d1G1?p=preview

It seems like the $digest cycle is running before the value is changed, so misses the change from bs-select. Is this a bug, or am I doing something wrong?

jhunken avatar Apr 24 '14 00:04 jhunken

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 26 '19 20:01 lock[bot]