vue 2.6.5 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.6.5
2
+ * Vue.js v2.6.6
3
3
  * (c) 2014-2019 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -5399,7 +5399,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
5399
5399
  value: FunctionalRenderContext
5400
5400
  });
5401
5401
 
5402
- Vue.version = '2.6.5';
5402
+ Vue.version = '2.6.6';
5403
5403
 
5404
5404
  /* */
5405
5405
 
@@ -10822,7 +10822,13 @@ function genHandler (handler) {
10822
10822
  }
10823
10823
 
10824
10824
  function genKeyFilter (keys) {
10825
- return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
10825
+ return (
10826
+ // make sure the key filters only apply to KeyboardEvents
10827
+ // #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
10828
+ // key events that do not have keyCode property...
10829
+ "if(!$event.type.indexOf('key')&&" +
10830
+ (keys.map(genFilterCode).join('&&')) + ")return null;"
10831
+ )
10826
10832
  }
10827
10833
 
10828
10834
  function genFilterCode (key) {
@@ -11188,7 +11194,12 @@ function genScopedSlots (
11188
11194
  // for example if the slot contains dynamic names, has v-if or v-for on them...
11189
11195
  var needsForceUpdate = Object.keys(slots).some(function (key) {
11190
11196
  var slot = slots[key];
11191
- return slot.slotTargetDynamic || slot.if || slot.for
11197
+ return (
11198
+ slot.slotTargetDynamic ||
11199
+ slot.if ||
11200
+ slot.for ||
11201
+ containsSlotChild(slot) // is passing down slot from parent which may be dynamic
11202
+ )
11192
11203
  });
11193
11204
  // OR when it is inside another scoped slot (the reactivity is disconnected)
11194
11205
  // #9438
@@ -11208,6 +11219,16 @@ function genScopedSlots (
11208
11219
  }).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
11209
11220
  }
11210
11221
 
11222
+ function containsSlotChild (el) {
11223
+ if (el.type === 1) {
11224
+ if (el.tag === 'slot') {
11225
+ return true
11226
+ }
11227
+ return el.children.some(containsSlotChild)
11228
+ }
11229
+ return false
11230
+ }
11231
+
11211
11232
  function genScopedSlot (
11212
11233
  el,
11213
11234
  state
package/dist/vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.6.5
2
+ * Vue.js v2.6.6
3
3
  * (c) 2014-2019 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -5383,7 +5383,7 @@
5383
5383
  value: FunctionalRenderContext
5384
5384
  });
5385
5385
 
5386
- Vue.version = '2.6.5';
5386
+ Vue.version = '2.6.6';
5387
5387
 
5388
5388
  /* */
5389
5389
 
@@ -10795,7 +10795,13 @@
10795
10795
  }
10796
10796
 
10797
10797
  function genKeyFilter (keys) {
10798
- return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
10798
+ return (
10799
+ // make sure the key filters only apply to KeyboardEvents
10800
+ // #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
10801
+ // key events that do not have keyCode property...
10802
+ "if(!$event.type.indexOf('key')&&" +
10803
+ (keys.map(genFilterCode).join('&&')) + ")return null;"
10804
+ )
10799
10805
  }
10800
10806
 
10801
10807
  function genFilterCode (key) {
@@ -11158,7 +11164,12 @@
11158
11164
  // for example if the slot contains dynamic names, has v-if or v-for on them...
11159
11165
  var needsForceUpdate = Object.keys(slots).some(function (key) {
11160
11166
  var slot = slots[key];
11161
- return slot.slotTargetDynamic || slot.if || slot.for
11167
+ return (
11168
+ slot.slotTargetDynamic ||
11169
+ slot.if ||
11170
+ slot.for ||
11171
+ containsSlotChild(slot) // is passing down slot from parent which may be dynamic
11172
+ )
11162
11173
  });
11163
11174
  // OR when it is inside another scoped slot (the reactivity is disconnected)
11164
11175
  // #9438
@@ -11178,6 +11189,16 @@
11178
11189
  }).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
11179
11190
  }
11180
11191
 
11192
+ function containsSlotChild (el) {
11193
+ if (el.type === 1) {
11194
+ if (el.tag === 'slot') {
11195
+ return true
11196
+ }
11197
+ return el.children.some(containsSlotChild)
11198
+ }
11199
+ return false
11200
+ }
11201
+
11181
11202
  function genScopedSlot (
11182
11203
  el,
11183
11204
  state