From 55df237d5db9b145876742a19a974c4326453f47 Mon Sep 17 00:00:00 2001 From: Hitko Development Date: Fri, 16 Sep 2016 15:46:23 +0200 Subject: [PATCH] Fix bug when data.value evaluates to false --- lib/jsonform.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jsonform.js b/lib/jsonform.js index f9574523..eae0dd3e 100644 --- a/lib/jsonform.js +++ b/lib/jsonform.js @@ -1689,9 +1689,9 @@ jsonform.elementTypes = { } var activeChild = null; - if (data.value) { + if (typeof data.value != 'undefined') { activeChild = _.find(children, function (child) { - return (child.value === node.value); + return (child.value == node.value); }); } if (!activeChild) {