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

2.0.17 vue-tsc error - multiple event properties with different modifiers returns TS1117: An object literal cannot have multiple properties with the same name #4382

Closed
synthmusic opened this issue May 15, 2024 · 2 comments

Comments

@synthmusic
Copy link

vue-tsc throwing error on component with multiple @keydown events with different modifiers as of 2.0.17.
Does not reproduce in 2.0.16

vue-tsc --build --force

with component that includes

<input
  @keydown.esc="handleEsc"
  @keydown.down.prevent="handleDown"
  @keydown.up.prevent="handleUp"
  @keydown.tab="handleTab"
/>

results in

- error TS1117: An object literal cannot have multiple properties with the same name.
@keydown.down.prevent="handleDown"
 ~~~~~~~

- error TS1117: An object literal cannot have multiple properties with the same name.
@keydown.up.prevent="handleUp"
 ~~~~~~~

- error TS1117: An object literal cannot have multiple properties with the same name.
@keydown.tab="handleTab"
 ~~~~~~~
@so1ve
Copy link
Member

so1ve commented May 15, 2024

Fixed by b359aa9

@so1ve so1ve closed this as completed May 15, 2024
@synthmusic
Copy link
Author

looked, didn't find - thanks much to you all!

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

No branches or pull requests

2 participants