Skip to content

[Bug]: components with arrow navigation call stopPropagation on keydown events #2400

@J-Michalek

Description

@J-Michalek

Link to minimal reproduction

https://stackblitz.com/edit/xkh7borp?file=src%2FApp.vue

Steps to reproduce

  1. Visit reproduction link
  2. Focus any calendar day cell
  3. Press Ctrl/Cmd + Enter
  4. See that the alert is not triggered

Describe the bug

The keydown event's propagation is stopped.

Expected behavior

The event propagation should not be stopped to allow the user to listen for the event.

Context & Screenshots (if applicable)

In my case I wanted to implement a popup calendar (date picker) that would allow to quickly submit the form using Ctrl+Enter shortcut.

This affects the following components:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions