Browse Source

fix update props

Evan You 10 years ago
parent
commit
0e940ac5af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/runtime/instance/render.js

+ 1 - 1
src/runtime/instance/render.js

@@ -72,7 +72,7 @@ function updateParentCallbacks (vm, data, parentData) {
 function updateProps (vm, data) {
   if (data.attrs || data.props) {
     for (let key in vm.$options.props) {
-      let newVal = getPropValue(data)
+      let newVal = getPropValue(data, key)
       if (vm[key] !== newVal) {
         vm[key] = newVal
       }