Calendar: Console.Error/Crash when pressing Escape key using Inline Calendar #4732
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When escape key is pressed on Inline Calendar it causes a Console Error, it also crashes our Storybook when escape key is pressed.
Would also enjoy having an emit available to handle as we please when using the Inline Calendar.
Reproducer
https://codesandbox.io/s/gracious-napier-q3q83k
PrimeVue version
3.23.0
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
entry.4dc39b69.js:1 TypeError: Cannot read properties of undefined (reading 'focus') at Proxy.onOverlayKeyDown (Calendar.dc381ab1.js:149:37092) at e.inline.s.overlayVisible.l.onKeydown.t.<computed>.t.<computed> (Calendar.dc381ab1.js:161:7137) at At (entry.4dc39b69.js:1:12867) at Be (entry.4dc39b69.js:1:12945) at HTMLDivElement.n (entry.4dc39b69.js:1:71754)
Expected behavior
To not trigger error when press ESC key and to emit an ESC event.
The text was updated successfully, but these errors were encountered: