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

Switch element loses focus when loading #6922

Open
1 task done
foxyd-sage opened this issue Aug 29, 2024 · 1 comment
Open
1 task done

Switch element loses focus when loading #6922

foxyd-sage opened this issue Aug 29, 2024 · 1 comment

Comments

@foxyd-sage
Copy link

foxyd-sage commented Aug 29, 2024

Description

When the user switches on the button - we send API request with some configuration and at this moment the user losing the focus from this Switch button.
So when the element has loading state th element lose the focus on it.
Would be usefull if we can handle it and leave the focus on the Switch element.

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-pyfspy?file=src%2FApp.tsx

Steps to reproduce

  1. Click the toggle button
  2. The focus losing once the button has Loading status

JIRA ticket numbers (Sage only)

SBS-106424

Suggested solution

No response

Carbon version

138.0.2

Design tokens version

4.34.0

Relevant browsers

Chrome

Relevant OSs

Windows

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@foxyd-sage foxyd-sage added Bug triage Triage Required labels Aug 29, 2024
@nicktitchmarsh
Copy link
Contributor

FE-6792

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

No branches or pull requests

3 participants
@nicktitchmarsh @foxyd-sage and others