@lvce-editor/virtual-dom 6.4.0 → 6.5.0
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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -709,8 +709,10 @@ const setText = ($Element, value) => {
|
|
|
709
709
|
$Element.nodeValue = value;
|
|
710
710
|
};
|
|
711
711
|
const removeChild = ($Element, index) => {
|
|
712
|
-
const $Child = $Element.
|
|
713
|
-
$Child
|
|
712
|
+
const $Child = $Element.childNodes[index];
|
|
713
|
+
if ($Child) {
|
|
714
|
+
$Child.remove();
|
|
715
|
+
}
|
|
714
716
|
};
|
|
715
717
|
const add$1 = ($Element, nodes, eventMap = {}) => {
|
|
716
718
|
renderInternal($Element, nodes, eventMap, eventMap);
|