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

Using arrow function inside v-on with key modifiers doesn't wok #5120

Closed
gotoprototype opened this issue Mar 7, 2017 · 0 comments
Closed
Labels

Comments

@gotoprototype
Copy link

Using an arrow function inside v-on directive together with a key modifier doesn't work.

  <!-- works -->
  <input type="text" v-on:keyup="changed">
  <!-- works -->
  <input type="text" v-on:keyup.enter="changed">
  <!-- works -->
  <input type="text" v-on:keyup="e => changed(e)">
  <!-- DOESN'T WORK -->
  <input type="text" v-on:keyup.enter="e => changed(e)">

fiddle to test it yourself

I asked in a forum thread first, it was mentioned that this could be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants