You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Carbon for IBM Products (or Carbon for IBM Cloud & Cognitive)
Legacy/CDAI
Legacy/Security
Detailed description
Describe in detail the issue you're having.
Every time I open a Tearsheet, every Tearsheet on the page tries to focus. This is because in handleStackChange.checkFocus(), position === depth === 0 for every tearsheet.
May be happening especially when using stacked tearsheets instead of nested tearsheets (see #2452).
To make matters worse, handleStackChange.claimFocus() may get an exception because there’s no element matching selectorPrimaryFocus. This happens for Tearsheets that defer rendering until they are opened:
What package(s) are you using?
Detailed description
Every time I open a Tearsheet, every Tearsheet on the page tries to focus. This is because in
handleStackChange.checkFocus()
,position === depth === 0
for every tearsheet.May be happening especially when using stacked tearsheets instead of nested tearsheets (see #2452).
To make matters worse,
handleStackChange.claimFocus()
may get an exception because there’s no element matchingselectorPrimaryFocus
. This happens for Tearsheets that defer rendering until they are opened:Yes, Tearsheet
Lots of exceptions in the console.
Chrome
2.18.0
IKC (nee Waston Knowledge Catalog)
Steps to reproduce the issue
Should be able to see the behavior from https://carbon-for-ibm-products.netlify.app/?path=/story/ibm-products-components-tearsheet-tearsheet--stacked by setting a breakpoint in TearsheetShell.js. But the exception won't happen unless you have markup like above:
The text was updated successfully, but these errors were encountered: