Skip to content

fix: clickhandler/indicator can't close dropdown list without selecting a option in combobox #5721

Closed

Description

@SzymonZur

🐛 Bug Report

If you open a combobox, you simply can't close dropdown list without selecting a option. You only can pressing escape etc to close.

💻 Repro or Code Sample

https://codesandbox.io/s/combobox-with-label-forked-e8mw3z?file=/index.html

  1. Click the combobox. The combobox will open.
  2. Try to close it by pressing indicator.

🤔 Expected Behavior

The combobox dropdown list should close by clicking indicator.

😯 Current Behavior

It stays open unless you pick an option or click escape etc.

💁 Possible Solution

Change clickHandler method to have more control on indicator (should open and close like "select" do).
Example:
https://www.w3.org/TR/wai-aria-practices-1.2/examples/combobox/combobox-autocomplete-list.html

🌍 Your Environment

OS & Device: MacOS Monterey
Browser: Chrome
Version: fast-foundation "^2.16.0"

Activity

  1. added
    area:fast-foundation
    community:request
    improvement
    status:under-consideration
    task
    and removed
    status:triage
    on Mar 9, 2022
  2. EisenbergEffect commented on Mar 9, 2022

    @EisenbergEffect
    Contributor

    I'm not sure if this is a bug or by design, since the drop down closes when clicking off of the combobox. I've marked this as an improvement for now until Chris Holt (@chrisdholt) can chime in.

  3. chrisdholt commented on Mar 29, 2022

    @chrisdholt
    Member

    We're about to do a push on select issues (investigating/fixing/etc) - taking a look to validate what's expected. At worst clicking outside the control should likely collapse. Thanks for the issue!

  4. chrisdholt commented on Apr 29, 2022

    @chrisdholt
    Member

    After validating, both a light dismiss when clicking outside the control and clicking the indicator have recently been resolved in Open UI, so we'd be happy to pick this up.

  5. added
    status:planned
    and removed
    status:under-consideration
    on Apr 29, 2022
  6. janechu commented on May 29, 2024

    @janechu
    Collaborator

    Unfortunately @microsoft/fast-components has been deprecated for some time.

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

Metadata

Metadata

Labels

area:fast-foundationclosed:obsoletecommunity:requestimprovementstatus:plannedtask

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions