-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
v-bind won't overwrite the property in $props with the same name #5150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This seems like intended behaviour to me: explicitly defined props overwrite losely defined ones.
Can you expand on that? |
@LinusBorg The opposite is actually happening 😆 |
Oh. Right. Anyways, I'm not aware that anything about the v-bind behaviour was changed recently, so it seems that was "indended" - but that would be up to @yyx990803 to answer. |
@LinusBorg |
* 'dev' of https://github.com/vuejs/vue: (118 commits) [weex] Support unary and left open tags (vuejs#5052) [release] 2.2.4 [build] 2.2.4 fix perf measure regression for nested components of the same name (fix vuejs#5181) [release] 2.2.3 [build] 2.2.3 perf code coverage improve camelCase prop warning message warn when template contains text outside root element (vuejs#5164) Warn when not passing props in kebab-case (vuejs#5161) turn off perf timeline measuring by default + reduce its impact on dev time perf (fix vuejs#5174) v-bind object should have lower priority than explicit bindings (fix vuejs#5150) fix custom directive arg fall through (fix vuejs#5162) formatting tweaks refactor create-component fix wrong order of generate modifier code (vuejs#5147) fix v-on unit test (vuejs#5144) fix vuejs#5121: parse content in textarea as plaintext (vuejs#5143) [release] 2.2.2 [build] 2.2.2 ... # Conflicts: # dist/vue.runtime.common.js # src/core/vdom/helpers/update-listeners.js
Uh oh!
There was an error while loading. Please reload this page.
Vue.js version
2.2.2
Reproduction Link
https://jsfiddle.net/holynewbie/bhbxht0g/
What is Expected?
the result should be
rather than
the might cause some problems in recursive component or dynamic component
The text was updated successfully, but these errors were encountered: