@vue/runtime-dom 3.5.32 → 3.5.33

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.32
2
+ * @vue/runtime-dom v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -532,7 +532,19 @@ function patchStyle(el, prev, next) {
532
532
  if (key === "display") {
533
533
  hasControlledDisplay = true;
534
534
  }
535
- setStyle(style, key, next[key]);
535
+ const value = next[key];
536
+ if (value != null) {
537
+ if (!shouldPreserveTextareaResizeStyle(
538
+ el,
539
+ key,
540
+ !isString(prev) && prev ? prev[key] : void 0,
541
+ value
542
+ )) {
543
+ setStyle(style, key, value);
544
+ }
545
+ } else {
546
+ setStyle(style, key, "");
547
+ }
536
548
  }
537
549
  } else {
538
550
  if (isCssString) {
@@ -605,6 +617,9 @@ function autoPrefix(style, rawName) {
605
617
  }
606
618
  return rawName;
607
619
  }
620
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
621
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
622
+ }
608
623
 
609
624
  const xlinkNS = "http://www.w3.org/1999/xlink";
610
625
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.32
2
+ * @vue/runtime-dom v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -430,7 +430,18 @@ var VueRuntimeDOM = (function (exports) {
430
430
  */
431
431
  off() {
432
432
  if (this._on > 0 && --this._on === 0) {
433
- activeEffectScope = this.prevScope;
433
+ if (activeEffectScope === this) {
434
+ activeEffectScope = this.prevScope;
435
+ } else {
436
+ let current = activeEffectScope;
437
+ while (current) {
438
+ if (current.prevScope === this) {
439
+ current.prevScope = this.prevScope;
440
+ break;
441
+ }
442
+ current = current.prevScope;
443
+ }
444
+ }
434
445
  this.prevScope = void 0;
435
446
  }
436
447
  }
@@ -3202,7 +3213,7 @@ var VueRuntimeDOM = (function (exports) {
3202
3213
  mc: mountChildren,
3203
3214
  pc: patchChildren,
3204
3215
  pbc: patchBlockChildren,
3205
- o: { insert, querySelector, createText, createComment }
3216
+ o: { insert, querySelector, createText, createComment, parentNode }
3206
3217
  } = internals;
3207
3218
  const disabled = isTeleportDisabled(n2.props);
3208
3219
  let { dynamicChildren } = n2;
@@ -3250,7 +3261,8 @@ var VueRuntimeDOM = (function (exports) {
3250
3261
  if (pendingMounts.get(vnode) !== mountJob) return;
3251
3262
  pendingMounts.delete(vnode);
3252
3263
  if (isTeleportDisabled(vnode.props)) {
3253
- mount(vnode, container, vnode.anchor);
3264
+ const mountContainer = parentNode(vnode.el) || container;
3265
+ mount(vnode, mountContainer, vnode.anchor);
3254
3266
  updateCssVars(vnode, true);
3255
3267
  }
3256
3268
  mountToTarget(vnode);
@@ -3412,7 +3424,7 @@ var VueRuntimeDOM = (function (exports) {
3412
3424
  if (isReorder) {
3413
3425
  insert(el, container, parentAnchor);
3414
3426
  }
3415
- if (!isReorder || isTeleportDisabled(props)) {
3427
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
3416
3428
  if (shapeFlag & 16) {
3417
3429
  for (let i = 0; i < children.length; i++) {
3418
3430
  move(
@@ -3586,10 +3598,14 @@ var VueRuntimeDOM = (function (exports) {
3586
3598
  const state = useTransitionState();
3587
3599
  return () => {
3588
3600
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
3589
- if (!children || !children.length) {
3601
+ const child = children && children.length ? findNonCommentChild(children) : (
3602
+ // Keep explicit default-slot conditionals on the same transition path
3603
+ // as regular v-if branches, which render a comment placeholder.
3604
+ instance.subTree ? createCommentVNode() : void 0
3605
+ );
3606
+ if (!child) {
3590
3607
  return;
3591
3608
  }
3592
- const child = findNonCommentChild(children);
3593
3609
  const rawProps = toRaw(props);
3594
3610
  const { mode } = rawProps;
3595
3611
  if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -10746,7 +10762,7 @@ Component that was made reactive: `,
10746
10762
  return true;
10747
10763
  }
10748
10764
 
10749
- const version = "3.5.32";
10765
+ const version = "3.5.33";
10750
10766
  const warn = warn$1 ;
10751
10767
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10752
10768
  const devtools = devtools$1 ;
@@ -11274,7 +11290,19 @@ Component that was made reactive: `,
11274
11290
  if (key === "display") {
11275
11291
  hasControlledDisplay = true;
11276
11292
  }
11277
- setStyle(style, key, next[key]);
11293
+ const value = next[key];
11294
+ if (value != null) {
11295
+ if (!shouldPreserveTextareaResizeStyle(
11296
+ el,
11297
+ key,
11298
+ !isString(prev) && prev ? prev[key] : void 0,
11299
+ value
11300
+ )) {
11301
+ setStyle(style, key, value);
11302
+ }
11303
+ } else {
11304
+ setStyle(style, key, "");
11305
+ }
11278
11306
  }
11279
11307
  } else {
11280
11308
  if (isCssString) {
@@ -11347,6 +11375,9 @@ Component that was made reactive: `,
11347
11375
  }
11348
11376
  return rawName;
11349
11377
  }
11378
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
11379
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
11380
+ }
11350
11381
 
11351
11382
  const xlinkNS = "http://www.w3.org/1999/xlink";
11352
11383
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {