Image: Preview not closing on escape click #4089
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Trying to close image preview with escape button results in exception:
TypeError: Cannot read properties of undefined (reading 'target')
Seems like this bug has been introduce with this commit: 5f57291
when an event parameter has been added to
onMaskClick()
method, whileonMaskKeydown()
method usesonMaskClick()
method inside without passing any parametersReproducer
https://primevue.org/image/
PrimeVue version
3.29.2
Vue version
3.x
Language
ALL
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Currently can be reproduced in PrimeVue docs
https://primevue.org/image/
Expected behavior
No response
The text was updated successfully, but these errors were encountered: