Skip to content
This repository has been 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
KKrisu opened this issue Apr 22, 2014 · 2 comments
Assignees

Comments

@KKrisu
Copy link

KKrisu commented Apr 22, 2014

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

@lgalfaso lgalfaso self-assigned this Apr 22, 2014
@lgalfaso
Copy link
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

@cesutherland
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants