Set value of a select after children are created.
This commit is contained in:
parent
6cc7c7adf0
commit
143a816d47
1 changed files with 4 additions and 1 deletions
|
|
@ -78,6 +78,9 @@ module.exports = function($window, onevent) {
|
|||
if (vnode.children != null) {
|
||||
var children = vnode.children
|
||||
createNodes(element, children, 0, children.length, hooks, null)
|
||||
if (tag === "select" && "value" in attrs) {
|
||||
setAttrs(vnode, { value: attrs.value })
|
||||
}
|
||||
}
|
||||
return element
|
||||
}
|
||||
|
|
@ -379,4 +382,4 @@ module.exports = function($window, onevent) {
|
|||
}
|
||||
|
||||
return {render: render}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue