Skip to content

[Bug]: Clearable dropdown > clear button is not invoked by Enter/Space key #26258

@kolaps33

Description

@kolaps33

Library

React Northstar / v0 (@fluentui/react-northstar)

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 Intel(R) Xeon(R) E-2176M  CPU @ 2.70GHz
    Memory: 12.27 GB / 31.74 GB
  Browsers:
    Edge: Spartan (44.22621.963.0), Chromium (108.0.1462.76)
    Internet Explorer: 11.0.22621.1

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/s/vqmboh?module=/example.js

Bug Description

Repro steps:

  1. Select any value in clearable dropdown
  2. navigate to close button
  3. press enter/space

Actual Behavior

nothing happen

Expected Behavior

onclick action should be executed and dropdown cleared...

the same repro on docsite:
https://fluentsite.z22.web.core.windows.net/0.65.0/components/dropdown/definition?showCode=false&showRtl=false&showTransparent=false&showVariables=false#types-clearable

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions