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

Avoid template diagnostic error on empty v-on #1371

Merged
merged 1 commit into from
Aug 7, 2019
Merged

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented Jul 30, 2019

Sometimes the users want to write v-on with empty value like @click.stop. In this case, Vetur produce an error because it passes true as the value on virtual source file.

Screenshot 2019-07-30 at 10 18 23 AM

Changing the value to noop solves this issue.

@octref
Copy link
Member

octref commented Aug 7, 2019

Thanks!

@octref octref merged commit 840686c into master Aug 7, 2019
octref added a commit that referenced this pull request Aug 7, 2019
yoyo930021 pushed a commit to yoyo930021/vuter that referenced this pull request Oct 28, 2019
@octref octref deleted the fix-empty-von branch July 31, 2020 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants