@vue/runtime-dom 3.4.31 → 3.4.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.4.31
2
+ * @vue/runtime-dom v3.4.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -535,12 +535,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecial
535
535
  }
536
536
  }
537
537
 
538
- function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspense, unmountChildren) {
538
+ function patchDOMProp(el, key, value, parentComponent) {
539
539
  if (key === "innerHTML" || key === "textContent") {
540
- if (prevChildren) {
541
- unmountChildren(prevChildren, parentComponent, parentSuspense);
542
- }
543
- el[key] = value == null ? "" : value;
540
+ if (value == null) return;
541
+ el[key] = value;
544
542
  return;
545
543
  }
546
544
  const tag = el.tagName;
@@ -671,7 +669,7 @@ function patchStopImmediatePropagation(e, value) {
671
669
 
672
670
  const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
673
671
  key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
674
- const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
672
+ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
675
673
  const isSVG = namespace === "svg";
676
674
  if (key === "class") {
677
675
  patchClass(el, nextValue, isSVG);
@@ -682,15 +680,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
682
680
  patchEvent(el, key, prevValue, nextValue, parentComponent);
683
681
  }
684
682
  } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
685
- patchDOMProp(
686
- el,
687
- key,
688
- nextValue,
689
- prevChildren,
690
- parentComponent,
691
- parentSuspense,
692
- unmountChildren
693
- );
683
+ patchDOMProp(el, key, nextValue);
694
684
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
695
685
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
696
686
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.4.31
2
+ * @vue/runtime-dom v3.4.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -521,12 +521,10 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = shared.isSpecial
521
521
  }
522
522
  }
523
523
 
524
- function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspense, unmountChildren) {
524
+ function patchDOMProp(el, key, value, parentComponent) {
525
525
  if (key === "innerHTML" || key === "textContent") {
526
- if (prevChildren) {
527
- unmountChildren(prevChildren, parentComponent, parentSuspense);
528
- }
529
- el[key] = value == null ? "" : value;
526
+ if (value == null) return;
527
+ el[key] = value;
530
528
  return;
531
529
  }
532
530
  const tag = el.tagName;
@@ -641,7 +639,7 @@ function patchStopImmediatePropagation(e, value) {
641
639
 
642
640
  const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
643
641
  key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
644
- const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
642
+ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) => {
645
643
  const isSVG = namespace === "svg";
646
644
  if (key === "class") {
647
645
  patchClass(el, nextValue, isSVG);
@@ -652,15 +650,7 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
652
650
  patchEvent(el, key, prevValue, nextValue, parentComponent);
653
651
  }
654
652
  } else if (key[0] === "." ? (key = key.slice(1), true) : key[0] === "^" ? (key = key.slice(1), false) : shouldSetAsProp(el, key, nextValue, isSVG)) {
655
- patchDOMProp(
656
- el,
657
- key,
658
- nextValue,
659
- prevChildren,
660
- parentComponent,
661
- parentSuspense,
662
- unmountChildren
663
- );
653
+ patchDOMProp(el, key, nextValue);
664
654
  if (!el.tagName.includes("-") && (key === "value" || key === "checked" || key === "selected")) {
665
655
  patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
666
656
  }