Jelajahi Sumber

fix v-on inline statement filter context (fix #1656)

Evan You 10 tahun lalu
induk
melakukan
722fc5ed0e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/directive.js

+ 1 - 1
src/directive.js

@@ -221,7 +221,7 @@ Directive.prototype._checkStatement = function () {
       fn.call(scope, scope)
     }
     if (this.filters) {
-      handler = this.vm._applyFilters(handler, null, this.filters)
+      handler = scope._applyFilters(handler, null, this.filters)
     }
     this.update(handler)
     return true