From 54c3ec24b27176cc15930aa8e10a0f0c8e038a02 Mon Sep 17 00:00:00 2001 From: clumiere Date: Tue, 18 Jun 2019 17:06:02 +0800 Subject: [PATCH] check child null, otherwise when child is zero, it wont display --- src/vhtml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vhtml.js b/src/vhtml.js index 0e03f69..5f3df5b 100644 --- a/src/vhtml.js +++ b/src/vhtml.js @@ -42,7 +42,7 @@ export default function h(name, attrs) { } else while (stack.length) { let child = stack.pop(); - if (child) { + if (child != null) { if (child.pop) { for (let i=child.length; i--; ) stack.push(child[i]); }