Przeglądaj źródła

fix two way binding with paths (fix #972)

Evan You 11 lat temu
rodzic
commit
60fd14e6d1
1 zmienionych plików z 1 dodań i 1 usunięć
  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)
           })
         )
       })