Tearsheet: Element focussed twice when using stacked tearsheets #6466
Labels
component: Tearsheet
role: dev
Sev 2
Aspects of design is broken and impedes users in a significant way, but has workaround.
type: bug 🐛
Something isn't working
Package
Carbon for IBM Products
Description
Expected : selectorPrimaryFocus to be focussed and not blurred
Actual: selectorPrimaryFocus is focused and then focussed again, causing the onBlur to fire with validation
The problem seems to be in TearsheetShell. The
handleStackChange.claimFocus
anduseEffect
both focus the element cComponent(s) impacted
https://github.com/carbon-design-system/ibm-products/blob/main/packages/ibm-products/src/components/Tearsheet/TearsheetShell.tsx
Browser
Chrome
@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version
@carbon/[email protected]
Suggested Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
Product/offering
NS1
CodeSandbox or Stackblitz example
https://stackblitz.com/edit/github-1qjirj?file=src%2FExample%2FExample.jsx
Steps to reproduce the issue (if applicable)
see example in stackblitz
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: