-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add .once
modifier description for v-on
#627
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
Conversation
Add `.once` description modifier for v-on and modifiers in render functions
.once
description modifier for v-on.once
modifier description for v-on
Thanks @KingMario! I moved things around a bit (trying to keep render function stuff collected in that section), but this looks really good! |
| `.prevent` | `event.preventDefault()` | | ||
| `.self` | `if (event.target !== event.currentTarget) return` | | ||
| Keys:<br>`.enter`, `.13` | `if (event.keyCode !== 13) return` (change `13` to [another key code](keycode.info) for other key modifiers) | | ||
| Modifiers Keys:<br>`.ctrl`, `.alt`, `.shift`, `.meta` | `if (!event.ctrlKey) return` (change `ctrlKey` to `altKey`, `shiftKey`, or `metaKey`, respectively) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifiers Keys or Modifier Keys
| `.stop` | `event.stopPropagation()` | | ||
| `.prevent` | `event.preventDefault()` | | ||
| `.self` | `if (event.target !== event.currentTarget) return` | | ||
| Keys:<br>`.enter`, `.13` | `if (event.keyCode !== 13) return` (change `13` to [another key code](keycode.info) for other key modifiers) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link to keycode.info is broken
Add
.once
modifier description for v-on and modifiers in render functions