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

Closed

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

Activity

  1. self-assigned this
    on Apr 22, 2014
  2. lgalfaso commented on Apr 22, 2014

    @lgalfaso
    Contributor

    Thanks for reporting this issue. It looks like the root cause of this issue is the same as in #6828 and that the same fix #7136 fixes this issue too.
    Closing this so this issue is handled in one place

  3. cesutherland commented on May 15, 2014

    @cesutherland
    Contributor

    I am bumping into this one too. ng-disabled="true" is not fixing for me in IE9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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