Evan You пре 6 година
родитељ
комит
13f5067656
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      packages/runtime-dom/src/modules/props.ts

+ 3 - 0
packages/runtime-dom/src/modules/props.ts

@@ -2,6 +2,9 @@ export function patchDOMProp(
   el: any,
   key: string,
   value: any,
+  // the next 3 args are passed only due to potential innerHTML/textContent
+  // overriding existing VNodes, in which case the old tree must be properly
+  // unmounted.
   prevChildren: any,
   parentComponent: any,
   unmountChildren: any