@lvce-editor/renderer-process 21.4.0 → 21.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.
@@ -695,8 +695,10 @@ const setText$3 = ($Element, value) => {
695
695
  $Element.nodeValue = value;
696
696
  };
697
697
  const removeChild = ($Element, index) => {
698
- const $Child = $Element.children[index];
699
- $Child.remove();
698
+ const $Child = $Element.childNodes[index];
699
+ if ($Child) {
700
+ $Child.remove();
701
+ }
700
702
  };
701
703
  const add$1 = ($Element, nodes, eventMap = {}) => {
702
704
  renderInternal($Element, nodes, eventMap, eventMap);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "21.4.0",
3
+ "version": "21.5.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"