aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-12 10:48:01 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-12 10:48:01 -1000
commita130219a5e677f23853cfe0c1f36fc0810fc2c9c (patch)
tree26092f59361dfa0d1094381b9e6b51c626effb38 /lib
parentb10544275bc5120992629a4a0a09c5a74dabd41c (diff)
downloadpatchfoo-a130219a5e677f23853cfe0c1f36fc0810fc2c9c.tar.gz
patchfoo-a130219a5e677f23853cfe0c1f36fc0810fc2c9c.zip
fix checkbox rendering
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 846700f..f4486a7 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -943,7 +943,7 @@ RenderMsg.prototype.valueTable = function (val, depth, cb) {
return cb(), self.linkify(val)
case 'boolean':
return cb(), h('input', {
- type: 'checkbox', disabled: 'disabled', checked: val
+ type: 'checkbox', disabled: 'disabled', checked: val ? 'checked' : undefined
})
default:
return cb(), String(val)