Open FFahrenheit opened 5 months ago
My guess here is that the keydown event listener calling handleKeyDown isn't being cleaned up properly for some reason.
We can't just add more guards here https://github.com/carbon-design-system/carbon/blob/2e4d9fac95fd4d421042ce669004325c8b36c2a0/packages/react/src/components/Notification/Notification.tsx#L57
Whoever works on this needs to identify why handleKeyDown is being called, determine if it should be being called, and if not, how to prevent it from being called.
Package
@carbon/react
Browser
Firefox
Package version
v1.47.0
React version
v18.2.0
Description
Closing an
ActionableNotification
withcloseOnEscape
property with scape button closes the notification, but then every keystroke an error is thrown, and in dev environment crashes the appDev environment:
Stackblitz:
Deployed application:
Reproduction/example
https://stackblitz.com/edit/github-3sw6vk?file=src%2FApp.jsx
Steps to reproduce
Suggested Severity
None
Application/PAL
No response
Code of Conduct