aboutsummaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/form.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/form.ts b/src/view/form.ts
index 67df0d4..77a8cb7 100644
--- a/src/view/form.ts
+++ b/src/view/form.ts
@@ -59,7 +59,7 @@ type LabelInputParams = {
function labelInput({ className, type, name, label, checked, value }: LabelInputParams) {
return h('label',
- { className },
+ className !== undefined ? { className } : {},
h('input', { type, name, checked, value }),
label
)