Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Angular Select select as label for value in array syntax broken for nullable #7605

Closed
@basarat

Description

@basarat

select as label for value in array shows an empty box if we drive the nullable from the model

For example for model

$scope.colors = [
      {name:'nothing', shade:null},
      {name:'red', shade:'dark'}
    ];

compare good version (color.name for color in colors)

image

with bad version (color.shade as color.name for color in colors)

image

Sample : http://plnkr.co/edit/MLgOTj9tjd9HF56Jm5RU?p=preview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions