Commit Graph

217 Commits

Author SHA1 Message Date
Natalia Tepluhina 861aea1661 polish: add warning when .native modifier is used on native HTML elements (#9884) 2019-04-25 10:39:19 +08:00
GU Yiling 0b57380f10 fix: v-bind object should be overridable by single bindings (#9653)
fix #9641
2019-03-09 01:00:47 +08:00
Bogdan Luca 66fd3c8dd1 fix(v-model): add value to $attrs if not defined in props (#9331)
fix #9330
2019-02-04 17:43:48 -05:00
nciont 0fb03b7831 fix: avoid blocking first input event in IE when it shouldn't (#9297)
- the original bug in #7138 only happens for `<textarea>`
- the bug doesn't happen if placeholder has empty value

fix #9042, fix #9383
2019-02-04 17:39:41 -05:00
Evan You 64f863bbb9 feat: move v-bind.prop shorthand behind flag 2019-02-02 10:49:01 -05:00
Filipe Amaral 539e481f38 fix: fix v-bind:style for camelCase properties with !important (#9386) 2019-01-31 10:08:35 -05:00
Evan You e632e9a075 fix: allow more enumerated values for contenteditable
close #9397
2019-01-31 09:56:18 -05:00
Evan You dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You 1868561442 fix: fix checkbox event edge case in Firefox 2019-01-24 15:43:06 -05:00
Evan You d2902ca8ec feat: support .property shorthand syntax for v-bind.prop modifier
close #7582
2019-01-09 17:31:04 -05:00
Evan You d747469e1a test: test case for v-for native collection support 2018-12-26 16:02:50 -05:00
Jeremy Dubois d40eb9c288 feat(v-for): support iterables in v-for (#8179) 2018-12-26 15:38:19 -05:00
Evan You 1c105fb16c test: fix test case for #8297 2018-12-21 14:29:57 -05:00
Divya 3fca52792e feat: v-bind.sync also listens for kebab-case update event (#8297)
fix #6428
2018-12-21 13:34:17 -05:00
Mathieu TUDISCO 0e4e45ec74 feat: support custom toString() in text interpolation and v-html (#8217)
close #8093
2018-12-21 13:13:48 -05:00
Evan You 0ebb0f39df fix: return inline invocation return value in v-on handlers
close #7628
2018-12-20 11:32:06 -05:00
Evan You b7f7f27569 feat: use event delegation when possible
This also fixes async edge case #6566 where events propagate too slow
and incorrectly trigger handlers post-patch.
2018-12-19 19:26:58 -05:00
Evan You 847e493768 fix: fix single v-for child optimization 2018-12-11 17:47:59 -05:00
Evan You 47487607fb fix: fix v-for component with undefined value
fix #9181
2018-12-11 16:51:03 -05:00
krystal 984393fed9 test: change model text's priority case (#9170) 2018-12-11 11:37:39 -05:00
laoxiong 19c33a7e40 fix(v-on): correctly remove once listener (#8036)
fix #8032
2018-12-02 11:33:39 -05:00
GU Yiling 758524134e fix: v-bind object should be overridable with kebab-cased props (#8845)
In addition .sync should generate camelCased event name
2018-11-30 17:56:41 -05:00
Evan You 7b7164c11c fix(v-model): avoid duplicate model transforms
This happens when a component directly passes down its own data object
to a child component. Fix #8436.
2018-11-29 18:11:20 -05:00
Haoqun Jiang a71853bfc5 fix(v-pre): skip compiling custom component tags in v-pre blocks (fix #8286) (#8376) 2018-10-24 13:24:07 -04:00
Sam Lichlyter 5489339a30 refactor(core): Replace "var" (#8299)
Replaces instances of "var" with "let" and "const" where applicable using the eslint 'no-var' and
'prefer-const' rules
2018-10-24 13:07:40 -04:00
Eduardo San Martin Morote db7287c23b fix(shared): check dates in looseEqual (#7940)
Fix #7928
thanks to @w3cj for the initial version. This one is using getTime instead of toUTCString because it
is much faster to compare
2018-10-24 12:45:06 -04:00
Evan You f148077437 chore: format 2018-03-23 19:21:34 -04:00
Hiroki Osame a6169d1eb7 fix(model): fix static input type being overwritten by v-bind object (#7819)
fix #7811
2018-03-13 11:40:15 -04:00
Evan You 71b4b25375 fix: allow multiline expression in v-for
fix #7792
2018-03-11 11:51:51 -04:00
Eduardo San Martin Morote db584931e2 fix(v-model): handle trailing whitespaces in expression (#7737) 2018-03-08 17:01:38 -05:00
GU Yiling 1c0b4af5fd fix: skip v-model & value binding collision check with dynamic type binding (#7406)
* fix #7404
2018-03-07 17:44:55 -05:00
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
2018-03-07 16:50:38 -05:00
JK 1c8e2e88ed fix: support KeyboardEvent.key in built-in keyboard event modifiers (#7121)
fix #6900
2018-03-07 14:38:41 -05:00
Evan You 41838c8e86 feat: support v-model dynamic type binding for v-bind="object"
close #7296
2017-12-21 11:06:43 -05:00
Evan You f5ce6b50cf fix(v-for): support array and nested destructuring in v-for 2017-11-27 16:54:15 -05:00
Evan You 0f7c443dca fix: block unnecessary input event on textarea placeholder in IE
close #7138
2017-11-27 12:13:37 -05:00
Evan You aa8262540a fix: fix v-for iterator parsing destructuring + parens without index 2017-11-24 10:09:04 -05:00
Evan You ebcef58645 fix: fix v-for alias deconstruct regression
fix #7096
2017-11-21 09:06:19 -05:00
Evan You 59dea37403 fix: fix v-model :value warning on custom component
fix #7084
2017-11-18 14:41:22 -05:00
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
2017-11-16 14:54:11 -05:00
Evan You daed1e7355 fix: normlaize @click.right and @click.middle
fix #7020
2017-11-13 12:55:56 -05:00
laoxiong 58a39dfa0e fix(model): correctly set select v-model initial value on patch (#6910) 2017-11-02 22:03:19 -04:00
Soo Jae Hwang 0c703e34d1 fix(v-model): v-if / v-else not working with :type + v-model (#6955)
fix #6918
2017-11-02 17:09:46 -04:00
JK b6c384dd78 fix(core): static trees should be cached on options (#6826) (#6837)
* test(once): failing test for #6826

* fix(core): static trees should be cached on options (#6826)
2017-10-18 06:26:55 +02:00
Evan You 08a7fb539f fix: v-on="object" listeners should fire after high-priority ones
fix #6805
2017-10-13 09:59:23 -04:00
Eduardo San Martin Morote 15031b8542 fix(v-model): allow arbitrary naems for type binding (#6802)
Fix #6800
2017-10-13 08:55:02 -04:00
Evan You 62405aa903 revert: fix(v-model): fix input listener with modifier blocking v-model update
This reverts commit 6f312d636c because the change
is no longer needed after switching nextTick to use MessageChannel.
2017-10-09 16:31:23 -04:00
Evan You f3fe012d54 feat(v-model): support dynamic input type binding 2017-10-07 23:18:11 -04:00
Evan You 4987eeb3a7 feat: v-on automatic key inference 2017-10-04 14:59:59 -04:00
Nick Messing 9734e878ec feat: add .exact event modifier (#5977)
Allow limiting the event to the exact system modifiers specified.
close #5976
2017-10-04 12:37:00 -04:00