This fiddle presents the solution to my problem:

http://jsfiddle.net/u5n8w/14/

On Friday, August 1, 2014 9:22:13 AM UTC+2, Damian Blazejewski wrote:
>
>
>
> <http://stackoverflow.com/questions/25073919/angular-js-select-looses-focues-option-when-scope-apply#>
>  
>   
> I have a quite straightforward select element like that:
>
> <select id="selectCurrency" selectmodel="currencyPair" class="select"
>         ng-model="currencyPair" ng-options="ft.id as ft.name for ft in 
> contentChart"
>         ng-change="currencyPairChange(currencyPair)"></select>
>
> When I drop down the select, focus any option other then the first one and 
> then the controller calls $scope.$apply(), focus is going back to the first 
> option automatically.
>
> Here is the fiddle presenting the problem:
>
> http://jsfiddle.net/u5n8w/1/
>
> I have no clue how to avoid such behaviour. Any help strongly appreciated.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to