Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Preselected disabled elements no longer work since Angular 1.2.15. #7413

Closed
shaundon opened this issue May 9, 2014 · 4 comments
Closed

Preselected disabled elements no longer work since Angular 1.2.15. #7413

shaundon opened this issue May 9, 2014 · 4 comments

Comments

@shaundon
Copy link

shaundon commented May 9, 2014

I think I might have found a bug.

Here's a fiddle using Angular 1.2.14. The select element shows 'select an option' on load, and the model won't change until an option is selected.

The same fiddle, except using Angular 1.2.15. The first option is selected by default, but the model is not initialised to reflect this. Angular 1.2.16 also has the same behaviour, and it happens in both Chrome and Firefox.

The release notes show that a fix was made in this release, might this have introduced this behaviour?

EDIT: I know there's an easy workaround for this, as shown in this fiddle, by pre-populating the model. I just thought I'd point out the change in behaviour.

@lgalfaso
Copy link
Contributor

lgalfaso commented May 9, 2014

Hi, can you check if #7136 fixes this issue?

@MarkusHamm
Copy link

Hi, I just checked and #7136 fixes this issue.
I started with Angular 1.2.16, applied the PR #7136 changes and the issue was gone.
I tested in Firefox 29.0.1 and Chrome 34.

@Narretz Narretz added this to the 1.3.0-beta.15 milestone Jul 1, 2014
@IgorMinar
Copy link
Contributor

This is no longer a problem in master http://jsfiddle.net/YxGzJ/

@shaundon
Copy link
Author

Thanks :)

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

No branches or pull requests

5 participants