Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
bugfix: Attribute 'value' maybe is an empty string.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang740 committed Nov 30, 2017
1 parent 5ca5748 commit 668e8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 && attrs.value!==0 && attrs.value!=='') {
attrs.value = attrs.defaultValue;
}
delete attrs.defaultValue;
Expand Down

0 comments on commit 668e8fb

Please sign in to comment.