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.

Hard coded <option> causes error "TypeError: Cannot read property 'getOptionFromViewValue' of undefined" #11685

Closed
@godza

Description

@godza

Hi, in documentation is stated that 'empty option' can be used when using ng-options. Here is direct quote

Optionally a single hard-coded option element, with the value set to an empty string, can be nested into the select element. This element will then represent the null or "not selected" option

I used that in 1.3 very heavily and it worked flawlessly, but in 1.4 i'm getting error

TypeError: Cannot read property 'getOptionFromViewValue' of undefined

Just to be clear, here is the template i'm using

<select ng-options="option.id as option.name for option in selectable_options">
  <option value="">Choose an option</option>
</select>

Is this planed regression or a bug? If this is planed regression, is there a workaround for the thing i'm trying to accomplish?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions