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

[Tearsheet]: The focus moves to the first element when the action button's disabled property is toggled. #6946

Open
2 tasks done
Rakesh-Addepalle opened this issue Feb 20, 2025 · 0 comments · May be fixed by #7063
Open
2 tasks done
Assignees
Labels
component: Tearsheet type: a11y ♿ Issues not following accessibility standards type: bug 🐛 Something isn't working

Comments

@Rakesh-Addepalle
Copy link

Rakesh-Addepalle commented Feb 20, 2025

Package

Carbon for IBM Products

Description

The focus moves to the first element when the action button's disabled property is toggled.
UseCase:- We have a form with multiple fields, and the requirement is to enable the "Continue" button only after all the required fields are filled.the focus is moving away from the currently editing field once this condition is met.

Component(s) impacted

Tearsheet

Browser

Chrome, Safari, Firefox

@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version

2.59.0

Suggested Severity

Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.

Product/offering

OpenPages

CodeSandbox or Stackblitz example

https://stackblitz.com/edit/github-cqjvhd-k4woiiav?file=src%2FExample%2FExample.jsx,src%2FApp.jsx,package.json

Steps to reproduce the issue (if applicable)

  1. Enter the data in fields.
  2. While entering data is second field, focus is immediately moving to first field.

Release date (if applicable)

No response

Code of Conduct

@github-project-automation github-project-automation bot moved this to Needs triage 🧐 in Carbon for IBM Products Feb 20, 2025
@makafsal makafsal self-assigned this Feb 25, 2025
@makafsal makafsal moved this from Needs triage 🧐 to Needs refinement 🤓 in Carbon for IBM Products Feb 25, 2025
@makafsal makafsal moved this from Needs refinement 🤓 to Backlog 🌋 in Carbon for IBM Products Feb 25, 2025
@anamikaanu96 anamikaanu96 added component: Tearsheet type: bug 🐛 Something isn't working type: a11y ♿ Issues not following accessibility standards and removed status: needs triage 🕵️‍♀️ labels Feb 26, 2025
@makafsal makafsal moved this from Backlog 🌋 to In progress in Carbon for IBM Products Mar 6, 2025
@makafsal makafsal moved this from In progress to Needs review 👋 in Carbon for IBM Products Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Tearsheet type: a11y ♿ Issues not following accessibility standards type: bug 🐛 Something isn't working
Projects
Status: Needs review 👋
Development

Successfully merging a pull request may close this issue.

3 participants