downshift-js/downshift
在 GitHub 查看[useSelect] Selecting item with spacebar in firefox reopens the menu
Open
#1,197 创建于 2020年11月18日
bughelp wantedneeds investigation
仓库指标
- Star
- (11,761 star)
- PR 合并指标
- (平均合并 6天 9小时) (30 天内合并 5 个 PR)
描述
downshiftversion: 6.0.6firefoxversion: 82.0.3
Relevant code or config
Error present in reference implementation: https://www.downshift-js.com/use-select
What you did:
With firefox, open a menu and select an item with the spacebar key
What happened:
The item was selected, but the menu was reopened. Closely inspecting the result of onStateChange it is revelead that on key down the __menu_keydown_space_button__ is emitted, and on key up the __togglebutton_click__ is emitted.
Error is not present in chrome.
Reproduction repository:
Problem description:
Suggested solution: