Skip to content

fix: keyboard functionality works in readonly in fast-switch #6304

@abbasc52

Description

@abbasc52

🐛 Bug Report

When using fast-switch with readonly attribute, if we focus on switch and use space key, it toggles the switch

💻 Repro or Code Sample

link - https://codesandbox.io/s/web-component-header-test-forked-lq0jkh

🤔 Expected Behavior

switch should not toggle with keyboard when readonly attribute is present

😯 Current Behavior

switch is toggling with keyboard when readonly attribute is present

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions