acl-services / acl-services/paprika
Triggering side panel with overlay causes panel to open and close via keyboard
- 主要語言
- JavaScript
- 星號
- 54
- 分支
- 10
- 平均合併
- 1 天 12 小時
- 30 天內合併 PR
- 6
描述
# Bug Report
## Expected behavior
1. When triggering a sidepanel (with overlay) with any type of button, it should open and close correctly.
## Current behavior
1. When triggering a sidepanel (with overlay) with a semantic button (). It opens the panel and immediately closes. This is because the sidepanel steals the focus to the (x button) and on the "onKeyUp" event it triggers the X and closes the panel. Therefore you can never open the panel with the keyboard. See sandbox below for more information.
## Workaround
Use non-semantic version of the button component
## Screenshots / Gifs / Codepens
https://codesandbox.io/s/sidepanel-issue-6ertl
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。