From a268e492803dd744774ad80baeba423ca973732c Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 20 Jul 2024 05:43:32 +0700 Subject: [PATCH] Fix unexpected "false" texts --- src/utils/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/html.ts b/src/utils/html.ts index e85d4a0..01b081b 100644 --- a/src/utils/html.ts +++ b/src/utils/html.ts @@ -50,7 +50,7 @@ function createElement(elmName: string, props: {[index: string]: if (arg instanceof Node) { $elm.appendChild(arg); - } else if (arg !== null && typeof arg !== 'undefined') { + } else if (arg !== null && arg !== false && typeof arg !== 'undefined') { $elm.appendChild(document.createTextNode(arg)); } }