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.

Regression: cannot select the last option in <select> with ng-options #10161

Closed
@BenoitBorlee

Description

@BenoitBorlee

I have a select directive with ng-options on a simple array of strings :

<select ng-model="formData.mySelect" ng-options="o for o in ['A','B','C']"></select>

With angularjs 1.2.27, I cannot select the last option ('C') the first time. I can only select other entries.

Reproduced here :
http://jsbin.com/pahujutico/1/watch?html,js,output
Steps :

  • Select the 'C' option of the selection box at first.
  • Please note that 'C' is NOT displayed.
  • Select the 'A' option of the selection box.
  • Please note that 'A' is displayed.

It works well with angularjs 1.2.25.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions