From 8506af4da795c09e78e9a5b9396678549081a531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=AC=E8=BF=9C?= Date: Mon, 12 Feb 2018 10:21:09 +0800 Subject: [PATCH] bugfix: Attribute 'value' maybe is an empty string. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6147c9f..2629d43 100644 --- a/src/index.js +++ b/src/index.js @@ -90,7 +90,7 @@ options.vnode = vnode => { if (vnode.children) attrs.children = vnode.children; if (attrs.defaultValue) { - if (!attrs.value && attrs.value!==0) { + if (attrs.value===undefined) { attrs.value = attrs.defaultValue; } delete attrs.defaultValue;