Skip to content

Suggestion: allow empty attribute value when event modifier is used #49

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
HerringtonDarkholme opened this issue Jun 24, 2017 · 1 comment · Fixed by #50
Closed

Suggestion: allow empty attribute value when event modifier is used #49

HerringtonDarkholme opened this issue Jun 24, 2017 · 1 comment · Fixed by #50

Comments

@HerringtonDarkholme
Copy link
Member

More specifically, only stop and prevent should be allowed.

Tell us about your environment

  • ESLint Version: 4.0.0
  • eslint-plugin-vue Version: 3.1.3
  • Node Version: 8

Please show your full configuration:

Vanilla

What did you do? Please include the actual source code causing the issue.

<template>
<el-from @submit.native.prevent></el-form>
</template>

What did you expect to happen?

No error. Since this is illustrated in the official doc. https://vuejs.org/v2/guide/events.html#Event-Modifiers

What actually happened? Please include the actual, raw output from ESLint.

Error. 'v-on' directives require that attribute value .
vuejs/vetur#279

@KaelWD
Copy link
Contributor

KaelWD commented Sep 11, 2017

Can the message be updated to be actual english? I still can't understand what it's trying to say.

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