palantir/blueprint

[Select] Can't select item by keyboard - Enter

Open

#5,191 opened on Mar 22, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
P2Package: selecthelp wanted

Description

Can't select item by keyboard Enter If replace Button via native button html tag, and set filterable={false}.

Environment

  • Package version(s):
  • Operating System:
  • Browser name and version:

Code Sandbox

Link to a minimal repro: https://codesandbox.io/s/blueprint-sandbox-forked-x7z0uz?file=/src/SelectExample.tsx

Loom: https://www.loom.com/share/2639f8abedff41ac84fe02a7548f0574

Steps to reproduce

  1. child components - native button
  2. filterable={false}
  3. Use Keyboard to select active item

Actual behavior

Can't select item, only if i pressed Enter second time

Expected behavior

Select item by keyboard Enter

Contributor guide