Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Clicking on Toggle component selects nearby text #10881

Closed
2 tasks done
TheophileMot opened this issue Feb 28, 2022 · 0 comments · Fixed by #11670
Closed
2 tasks done

[Bug]: Clicking on Toggle component selects nearby text #10881

TheophileMot opened this issue Feb 28, 2022 · 0 comments · Fixed by #11670

Comments

@TheophileMot
Copy link

TheophileMot commented Feb 28, 2022

Package

carbon-components-svelte

Browser

Chrome

Package version

v10.47.0

React version

No response

Description

If you click quickly on a Toggle component, this will cause the browser to select text on the page. This happens when clicking on the graphical part of the toggle, not the label beside it.

The linked demo is written in React, but also applies to Svelte and presumably other libraries.

CodeSandbox example

https://codesandbox.io/s/relaxed-drake-vdo7k8

Steps to reproduce

Double-click or triple-click the graphical element of the Toggle component.

Code of Conduct

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

Successfully merging a pull request may close this issue.

2 participants