Evan You
6b1d431a89
Revert "perf: avoid unnecessary re-renders when computed property value did not change ( #7824 )"
This reverts commit 653aac2c57
.
6 years ago
Yuriy Alekseyev
59860b0a75
refactor: make the warning messages more explicit ( close #7764 ) ( #7881 )
6 years ago
Edd Yerburgh
c94482743c
feat: add async option ( #8240 )
This is an option intended only for testing purposes, and should not be used in
application code.
6 years ago
Evan You
f148077437
chore: format
7 years ago
Evan You
653aac2c57
perf: avoid unnecessary re-renders when computed property value did not change ( #7824 )
close #7767
7 years ago
Evan You
b7445a2b94
fix: beforeUpdate should be called before render and allow state mutation ( #7822 )
fix #7481
7 years ago
dherman
7b387390aa
fix: correct the `has` implementation in the `_renderProxy` ( #7878 )
It's feasible that someone might ask if something other than a string is
in the proxy such as a `Symbol` that lacks a `charAt` method. This aligns
the implementation with the `getHandler`.
7 years ago
Evan You
62a922e865
fix: fix wrongly matched named slots in functional components
This is a subtle edge case caused when a stateful component triggers
a self re-render, which reuses cached slot nodes. The cached slot
nodes, if returned from a functional render fn, gets the fnContext
property which causes subsequent slot resolving to not function
properly. To fix this, nodes returned from functional components
need to be cloned before getting assigned fnContext.
fix #7817
7 years ago
Hiroki Osame
a6169d1eb7
fix(model): fix static input type being overwritten by v-bind object ( #7819 )
fix #7811
7 years ago
Evan You
6dd73e9ee4
fix: named slots for nested functional components
Named slots should be respecred when passing raw children down multiple
layers of functional components.
fix #7710
7 years ago
Evan You
215f877d1b
fix(keep-alive): run prune after render for correct active component check
fix #7566
7 years ago
Evan You
71b4b25375
fix: allow multiline expression in v-for
fix #7792
7 years ago
Evan You
81e1e47cab
fix: respect type order when boolean casting multi-typed props
fix #7485
7 years ago
AchillesJ
318f29fcdf
fix(core): disable dependency collection in lifecycle hooks and data getter ( #7596 )
This fixes the parent being updated more than necessary due to collecting child props
as dependencies during its own update computation.
fix #7573
7 years ago
Eduardo San Martin Morote
db584931e2
fix(v-model): handle trailing whitespaces in expression ( #7737 )
7 years ago
Hiroki Osame
733c1be7f5
fix(inject): use hasOwn instead of 'in' for provideKey check ( #7460 )
fix #7284
* fix(Injection with Symbol polyfill): hasOwn instead of 'in'
Symbol polyfill adds a setter on the Object prototype so the 'in' check evaluated to true on every
object
* test(Injected properties): Ensures prototype properties aren't injected
Prototype properties were being injected, so injecting 'constructor' would have hit the first
provide-layer and not yield expected results.
7 years ago
GU Yiling
1c0b4af5fd
fix: skip v-model & value binding collision check with dynamic type binding ( #7406 )
* fix #7404
7 years ago
Evan You
f7ca21eab1
fix: always install composition event listeners
Previously the installation was skipped on Android because
it was not needed for Chinese IME - however some IMEs such
as Japanese exhibits the same behavior as on other browers.
So it is safer to always enable the check. Closes #7367
7 years ago
JK
1c8e2e88ed
fix: support KeyboardEvent.key in built-in keyboard event modifiers ( #7121 )
fix #6900
7 years ago
TB
e396eb3445
fix(ref): allow ref key to be zero ( #7676 )
prevents missing elements when :ref value is "0"
fix #7669
7 years ago
Guillaume Chau
5191f13472
fix(transition): should not add transition class when cancelled ( #7391 )
fix #7390
7 years ago
Evan You
41838c8e86
feat: support v-model dynamic type binding for v-bind="object"
close #7296
7 years ago
Evan You
8335217cb4
fix(core): handle edge cases for functional component returning arrays
fix #7282
7 years ago
Evan You
aac76349e7
Revert "feat: auto cache inline prop literals to avoid child re-render"
This reverts commit 996eb00a0a
.
7 years ago
Evan You
01c07503bf
revert: revert prop object validation
close #7279
7 years ago
Evan You
996eb00a0a
feat: auto cache inline prop literals to avoid child re-render
7 years ago
Alexander Sokolov
d02bb37efb
feat: warn misspelled keys on prop validation object ( #7198 )
7 years ago
Evan You
4e00688e4a
build: update dev dependencies
7 years ago
laoxiong
023f171f58
fix(core): warn duplicate keys in all cases ( #7200 )
close #7199
7 years ago
Guillaume Chau
bd4819e6cf
fix: data() should be called with vm as first argument in mixins
fix #7191
7 years ago
Evan You
f5ce6b50cf
fix(v-for): support array and nested destructuring in v-for
7 years ago
Evan You
0f7c443dca
fix: block unnecessary input event on textarea placeholder in IE
close #7138
7 years ago
Evan You
aa8262540a
fix: fix v-for iterator parsing destructuring + parens without index
7 years ago
Evan You
dd21eacc33
fix: fix async component resolving in sibling mounted hook
fix #7107
7 years ago
Evan You
604e081d04
fix: ensure functionalContext is cloned during slot clones
fix #7106
7 years ago
Evan You
3932a451a1
fix(keep-alive): should not destroy active instance when pruning cache
fix #7105
7 years ago
Evan You
ebcef58645
fix: fix v-for alias deconstruct regression
fix #7096
7 years ago
Evan You
a23b913796
fix: fix <keep-alive> include/exclude logic for anonymous components
7 years ago
Evan You
59dea37403
fix: fix v-model :value warning on custom component
fix #7084
7 years ago
Evan You
4d8226fb2c
fix: keep-alive should not cache anonymous components
This only happens if the component is returned by a intermediate
functional or abstract component, e.g. <router-view>. Fix #6938 .
7 years ago
Evan You
6d6b3739e1
fix: should warn unknown components inside <keep-alive>
7 years ago
Robert Pemberton
1e146037fa
feat: warn if both v-model and v-bind:value used on same element ( #7056 )
* test($compile): warn if v-model and :value used on same text input
#7048
* test($compile): make v-model and v-bind:value warning apply to all but exceptions
#7048
* test($compile): move v-model/:value conflict warner to model.js
#7048
* style: split long warning messages onto new lines
7 years ago
Evan You
6b799190a5
test: add test case for #6687 + fix lingering comment node
7 years ago
Evan You
daed1e7355
fix: normlaize @click.right and @click.middle
fix #7020
7 years ago
Evan You
5a9da95b8a
fix(slots): properly handle nested named slot passing
fix #6996
7 years ago
laoxiong
58a39dfa0e
fix(model): correctly set select v-model initial value on patch ( #6910 )
7 years ago
Soo Jae Hwang
0c703e34d1
fix(v-model): v-if / v-else not working with :type + v-model ( #6955 )
fix #6918
7 years ago
Mads K
c24f3e4208
fix(events): properly $off array of events ( #6949 )
7 years ago
Evan You
1cf02efda2
fix: also clone component slot children during deepClone
fix #6891 , fix #6915
7 years ago
Evan You
83ed92608d
fix: $set should respect properties on prototype chain
fix #6845
7 years ago