We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ecf9d commit 334dda1Copy full SHA for 334dda1
src/directives/on.js
@@ -9,7 +9,7 @@ module.exports = {
9
bind: function () {
10
// 1.0.0 key filter
11
var rawArg = this.arg
12
- var keyIndex = rawArg.indexOf(':')
+ var keyIndex = rawArg.indexOf('.')
13
if (keyIndex > -1) {
14
this.arg = rawArg.slice(0, keyIndex)
15
this.key = rawArg.slice(keyIndex + 1)
test/unit/specs/directives/on_spec.js
@@ -74,7 +74,7 @@ if (_.inBrowser) {
74
it('with key filter (new syntax)', function (done) {
75
new Vue({
76
el: el,
77
- template: '<a @keyup:enter="test">{{a}}</a>',
+ template: '<a @keyup.enter="test">{{a}}</a>',
78
data: {a: 1},
79
methods: {
80
test: function () {
0 commit comments