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.

Select option with 'disabled' attribute is not selected by default when model value is empty. #7202

@KKrisu

Description

@KKrisu

Dear team,

I've noticed that <option value="" disabled> is not selected by default when model valus is empty. It works correctly when I set ng-disabled="true" attribute instead, though.

This issue started affecting our application after we updated angular from 1.2.5 to 1.2.16.

I've created plunker with example of this issue: http://plnkr.co/edit/CZ3vUYhOkF1c8feFxcDq?p=preview

Reproducable: always
Browsers: Chrome 31, Firefox 26
Operating system: Ubuntu 13.04

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions