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 a wrapped v-bind object with .sync modifier produces a false-negative for "misses props:" #3144

Closed
4 tasks done
thopiddock opened this issue Sep 6, 2021 · 1 comment
Assignees
Milestone

Comments

@thopiddock
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Windows 10
  • Vetur version: 0.34.1
  • VS Code version: 1.59.1 (System Setup)

Problem

When you pass the properties of an object with v-bind using .sync to automatically inject the properties for that object - Vetur produces a false-negative result:

image

image

Reproducible Case

https://github.com/thopiddock/vetur-v-bind-sync-missing-props-bug
Child component added with 2 properties (one required, one optional) is called with 4 styles of binding to show that Vetur produces a false-negative on the v-bind.sync statement to an object.

@thopiddock thopiddock changed the title Using a wrapped v-bind object with .sync modifier produces a false positive for "misses props:" Using a wrapped v-bind object with .sync modifier produces a false-negative for "misses props:" Sep 6, 2021
@yoyo930021 yoyo930021 added the bug label Oct 4, 2021
@yoyo930021 yoyo930021 self-assigned this Oct 4, 2021
@yoyo930021 yoyo930021 added this to the v0.35.0 milestone Oct 4, 2021
@thopiddock
Copy link
Author

Dayum @yoyo930021 - you move quick! Nicely done!

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

2 participants