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.

fix(select) ... breaks some selects with required attributes on firefox. #7715

Closed

Description

@luisa-reis

The commit dc149de breaks selects with a required attribute and an disabled default empty option, but only on firefox.

Please check this jsbin on both chrome and firefox.

Activity

  1. Narretz commented on Jun 20, 2014

    @Narretz
    Contributor

    It looks like the optional select is also broken on Chrome, because the select has A selected, whereas 'Choose a choice' should be selected

  2. self-assigned this
    on Jun 20, 2014
  3. added this to the 1.3.0-beta.14 milestone on Jun 20, 2014
  4. caitp commented on Jun 20, 2014

    @caitp
    Contributor

    we filed an issue about this with Chromium, actually, because it works as expected in firefox, but differently in chrome --- mostly because that section of html is a bit underspecified.

    I haven't kept up with the issues though, don't think I added myself to the CC list

  5. Narretz commented on Jun 20, 2014

    @Narretz
    Contributor

    Oh, so it's actually correct in Firefox: because the first field is disabled, the second field is automatically selected? But @luismreis says that's broken. So maybe the expectation is that a disabled field can still be preselected (but not user selected), because you don't want to make a selection for the user ... regardless of required state.

  6. caitp commented on Jun 20, 2014

    @caitp
    Contributor

    the scenario which is broken is sort of hard to explain, it's easiest to just show the fiddle --- it's in one of the issues about this, can't recall OTOH though

  7. removed their assignment
    on Jun 21, 2014
  8. luisa-reis commented on Jun 21, 2014

    @luisa-reis
    Author

    @Narretz The scenario is this: you need a select control for something that is required, but you don't want to pre-choose one of the normal options. A way to do this is by having a default value that is disabled, so, the user can choose another one, but not the initial void/empty one.

    I prefer the "show disabled option" behaviour, but I understand that it feels a bit broken - maybe I should be using another widget for this.

    BTW, I started to have doubts on this being pure browser or angular bejaviour and now there's a new version of the fiddle at (http://jsbin.com/wobod/4). The problem is exactly the same regardless if angular is involved or not.

  9. added this to the 1.3.0-beta.15 milestone on Jun 30, 2014
  10. 29 remaining items

  11. removed this from the 1.3.0-beta.17 milestone on Jul 25, 2014
  12. added a commit that references this issue on Jul 30, 2014
    cdc7db3
  13. added a commit that references this issue on Jul 30, 2014
    c286094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions