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

No way to stop esc propagation #1079

Open
arthurvasconcelos opened this issue Feb 11, 2025 · 0 comments
Open

No way to stop esc propagation #1079

arthurvasconcelos opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@arthurvasconcelos
Copy link

Describe the bug
Although we can define that esc does not close the calendar anymore, the event is still propagated.

To Reproduce
I set up an example: https://stackblitz.com/edit/vuepic-vue-datepicker-uvq8afr6?file=src%2Fcomponents%2FPlayground.vue

Expected behavior
Either esc-close="false" should not propagate the ESC event, or even better, we should/could have a config to stop the propagation of all (or more) events.
Or allowStopPropagation should also stop events other than only click ones.

As extra context, I have the date picker on a modal, so when the user closes the picker with esc, the event propagates and closes the modal as well.

Desktop & mobile (please complete the following information):

  • Browser: chrome
  • Library version: 11.0.1
@arthurvasconcelos arthurvasconcelos added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Feb 11, 2025
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants