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

Commit 668e8fb

Browse files
authored
bugfix: Attribute 'value' maybe is an empty string.
1 parent 5ca5748 commit 668e8fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ options.vnode = vnode => {
9090
if (vnode.children) attrs.children = vnode.children;
9191

9292
if (attrs.defaultValue) {
93-
if (!attrs.value && attrs.value!==0) {
93+
if (!attrs.value && attrs.value!==0 && attrs.value!=='') {
9494
attrs.value = attrs.defaultValue;
9595
}
9696
delete attrs.defaultValue;

0 commit comments

Comments
 (0)