Explorar o código

fix two way binding with paths (fix #972)

Evan You %!s(int64=11) %!d(string=hai) anos
pai
achega
60fd14e6d1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/directives/prop.js

+ 1 - 1
src/directives/prop.js

@@ -67,7 +67,7 @@ module.exports = {
           child,
           childKey,
           withLock(function (val) {
-            parent[parentKey] = val
+            parent.$set(parentKey, val)
           })
         )
       })