Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

null value in model causes "TypeError: scope.$activeIndex.indexOf is not a function" #1654

@nicklasb

Description

@nicklasb

If one initializes a drop down with a null value in the model, this error is thrown:

 TypeError: scope.$activeIndex.indexOf is not a function

It would appear that starting with a null value in the model should not be a problem, null is a quite common value.

Plunkr: http://plnkr.co/SNhTvz

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions