•  
      request #32318 Single-value list-picker chooses first enabled value after clearing its value
    Infos
    #32318
    Joris MASSON (jmasson)
    2023-06-21 12:40
    2023-06-20 13:10
    33924
    Details
    Single-value list-picker chooses first enabled value after clearing its value

    On a single-value list-picker, if I choose a value and then I click on the "cross" icon on the right of the selection (to clear the selection), it will look visually empty (without selection) but the underlying <select> element will have a value. Its value will be the first possible, non-disabled, <option>.

    The way to workaround this issue is to add an empty option like <option value=""></option> (see request #32627). Nonetheless, the list-picker should not act like there is no value. It should stay in sync with its <select> and show the first non-disabled option as selected.

    Empty
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Walk-through the issue in the Artifact creation section of the Artifact links field of the Artifact modal. The Projects list-picker looks empty, but the code acts like it is not. It still has a value
    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2023-06-21 12:40
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes