Skip to content

Components with input element activating Storybook shortcuts #9774

Open

Description

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 a BXSearch will result in the components list to be focused, or typing an a will toggle the knob menu, while these actions don't happen when using BXInput.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdevNeeds some dev workinactiveseverity 4Affects minor functionality, no workaround neededstorybook

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions