Skip to content

v-on:keypress.enter.prevent preventing all input keys from working #5171

@dorianWB

Description

@dorianWB

Vue.js version

2.2.2

Reproduction Link

https://jsfiddle.net/L0q7t4xj/4/

Steps to reproduce

use v-on:keypress.enter.prevent

What is Expected?

enter keypress events will call the given method with the default prevented

What is actually happening?

I'm not entirely sure, but it looks like all keypress defaults are prevented and the given method is called for enter only

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions