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]: Notification throws an error when Close button is clicked followed by the tab key. #16874

Closed
2 tasks done
dcostantino opened this issue Jun 26, 2024 · 0 comments · Fixed by #17528
Closed
2 tasks done

Comments

@dcostantino
Copy link

dcostantino commented Jun 26, 2024

Package

@carbon/react

Browser

Chrome

Package version

v1.55.0. but also happening in Storybook v1.60.2

React version

v17.0.2

Description

Dismissible ActionableNotification throws an error after the Close button is clicked followed by the TAB key. This happens in my app as well as the Storybook.

Reproduction/example

https://stackblitz.com/edit/github-kmjq22?file=src%2FApp.jsx

Steps to reproduce

Click on close button, or ENTER.
Press tab key.
Check browser console to see error:

@carbon_react.js?v=0e718ee7:95534 Uncaught TypeError: Cannot read properties of null (reading 'contains')
    at HTMLDocument.handleKeyDown (@carbon_react.js?v=0e718ee7:95534:103)

Suggested Severity

None

Application/PAL

Instana

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

6 participants