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.

ngOptions with boolean values breakes select element #3490

Closed
@pastorcak

Description

@pastorcak

I have this array for ngOptions:
$scope.boolValues = [{value: true, name: 'True'}, {value: false, name: 'False'}];

and this ng-options in html:
ng-options="bool.value as bool.name for bool in boolValues"

When I try to select "False" in select element new empty options is created and selected. When I try to select "True", empty option is removed and correct option is selected.
I think ngOption directive is not prepared for boolean values...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions