From eb725731213a89502a2c17d9f5ee62bdbf179d23 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 20 Feb 2025 18:09:17 +0000 Subject: [PATCH] Reverted to the old removeChildren implementation. --- assets/common.js/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/common.js/html.js b/assets/common.js/html.js index 8b45916c..4f6dbedd 100644 --- a/assets/common.js/html.js +++ b/assets/common.js/html.js @@ -44,8 +44,8 @@ const $appendChildren = function(element, ...children) { }; const $removeChildren = function(element) { - while(element.firstChild) - element.firstChild.remove(); + while(element.lastChild) + element.removeChild(element.lastChild); }; const $fragment = function(props, ...children) {