Skip to content

Duplicate identifier '"keydown"' error when using multiple keydown events #1745

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

Closed
3 tasks done
victorgarciaesgi opened this issue Mar 2, 2020 · 2 comments
Closed
3 tasks done

Comments

@victorgarciaesgi
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOs
  • Vetur version:10.15.3
  • VS Code version: 1.42.1

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>
@DavudSafarli
Copy link

image
Isn't there any solution yet?

octref added a commit that referenced this issue Oct 31, 2020
@octref octref closed this as completed in e200ea5 Oct 31, 2020
octref added a commit that referenced this issue Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@octref @victorgarciaesgi @DavudSafarli and others