amitava82 / angular-multiselect

[NOT MAINTAINED]Native AngularJS multiselect directive
http://amitava82.github.io/angular-multiselect
MIT License
140 stars 124 forks source link

single select - button text is not mapped correctly to the model value #94

Open NithinBiliya opened 7 years ago

NithinBiliya commented 7 years ago

single select - button text is not mapped correctly to the model value

Object -

    $scope.fruits = [
                        {id: 1, name: 'Apple'},
                        {id: 2, name: 'Orange'},
                        {id: 3, name: 'Banana'}
                    ];

option string is - "c.id as c.name for c in fruits"

Plnkr link - link1

Select "Orange" in 2nd dropdown. The model value is set correctly to 2, but the button text is set to "Banana"