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

Fix( unit ): using the. exact modifier error when all system modifiers #9776

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Fix( unit ): using the. exact modifier error when all system modifiers #9776

wants to merge 2 commits into from

Conversation

Zhang-Wei-666
Copy link

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

@Justineo
Copy link
Member

Can you provide a rationale for this change please?

@Zhang-Wei-666
Copy link
Author

Zhang-Wei-666 commented Mar 26, 2019

@Justineo

new Vue({
el: document.createElement('div'),
template: "<div @click.ctrl.alt.shift.meta.exact></div>"
});

if()return null;

vue.js:634 [Vue warn]: Failed to generate render function:

SyntaxError: Unexpected token ) in

with(this){return _c('div',{on:{"click":function($event){if(!$event.ctrlKey)return null;if(!$event.altKey)return null;if(!$event.shiftKey)return null;if(!$event.metaKey)return null;if()return null;}}})}

(found in )

@Justineo
Copy link
Member

Never mind, we can use this repro:

https://template-explorer.vuejs.org/#%3Cdiv%20%40click.ctrl.alt.shift.meta.exact%3E%3C%2Fdiv%3E

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

Successfully merging this pull request may close these issues.

None yet

3 participants