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.

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

Closed

Description

@shaundon

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.

Activity

  1. lgalfaso commented on May 9, 2014

    @lgalfaso
    Contributor

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

  2. MarkusHamm commented on May 10, 2014

    @MarkusHamm

    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.

  3. added this to the 1.3.0-beta.15 milestone on Jul 1, 2014
  4. IgorMinar commented on Jul 10, 2014

    @IgorMinar
    Contributor

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

  5. shaundon commented on Jul 11, 2014

    @shaundon
    Author

    Thanks :)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions