fix(hippy-react): fixed insertBefore moveChild condition

This commit is contained in:
zoomchan-cxj
2021-11-16 16:24:15 +08:00
parent 9889648d71
commit b2d71ebee6
@@ -92,7 +92,7 @@ function insertBefore(
child: Element,
beforeChild: Element,
): void {
if (parent.childNodes.indexOf(child) > 0) {
if (parent.childNodes.indexOf(child) >= 0) {
// move it if the node has existed
parent.moveChild(child, beforeChild);
} else {