Vetur: Duplicate identifier '"keydown"' error when using multiple keydown events

Created on 2 Mar 2020  路  2Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

Problem

I have this code:

image

With vetur.experimental.templateInterpolationService set to true, the TS virtual file will think that I have duplicate identifiers whereas this code is valid Vue template code

image

To reproduce simply rewrite this code to any template

<template>
<input
 @keydown.down.up.prevent.stop="updateSelectedResult"
 @keydown.esc.prevent="handleEchap"
 @keydown.enter.prevent="handleEnter"
/>
</template>
bug template-interpolation

Most helpful comment

image
Isn't there any solution yet?

All 2 comments

Any news on this?

image
Isn't there any solution yet?

Was this page helpful?
0 / 5 - 0 ratings