@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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  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.children[index];
713
- $Child.remove();
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/virtual-dom.git"