Calendar: "Error: Duplicate global Esc key listener with priority [600, 0] in Calendar components" #7407
Labels
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
Milestone
Describe the bug
The following error occurs when interacting with multiple calendar components in PrimeReact:
Error also occurs in the official PrimeReact documentation.
Reproducer
https://stackblitz.com/edit/rtiuwb?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
The global listener for the Escape key should not be added multiple times. Ideally, a single listener should be sufficient, or any existing listener should be removed before adding a new one.
The text was updated successfully, but these errors were encountered: