Components with input element activating Storybook shortcuts #9774
Labels
bug
Something isn't working
dev
Needs some dev work
inactive
severity 4
Affects minor functionality, no workaround needed
storybook
Description
As seen in carbon-design-system/carbon-web-components#717, some components are able to ignore the Storybook keyboard shortcuts while typing on an input bar, while others do not. For example, typing a
1
in aBXSearch
will result in the components list to be focused, or typing ana
will toggle the knob menu, while these actions don't happen when usingBXInput
.It's a strange bug since it still occurs after stripping down the components to their bare minimum by only using an
input
element within their Shadow DOM (as seen in the PR linked), even though that they are the exact same component, only with a different name.Video showing issue:
https://user-images.githubusercontent.com/24970122/139461104-893daaa3-34a2-48b7-8ec1-2729eabe2ed8.mov
Component(s) impacted
The components currently affected with this bug are:
BXSearch
BXCombobox
BXMultiSelect - filterable
Browser
No response
Carbon Web Components version
canary
Severity
Severity 4 = The problem is not visible to or noticeable to an average user. Affects minor functionality, no workaround needed.
Application/website
N/A
CodeSandbox example
carbon-design-system/carbon-web-components#717
Steps to reproduce the issue (if applicable)
Visit the search or combobox story and begin typing. If the key corresponds to a Storybook shortcut (e.g. a, d, f, s, t, 1) observe that the Storybook changes and focus can be stolen from the component being interacted with
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: