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) {
|
if (vnode.children != null) {
|
||||||
var children = vnode.children
|
var children = vnode.children
|
||||||
createNodes(element, children, 0, children.length, hooks, null)
|
createNodes(element, children, 0, children.length, hooks, null)
|
||||||
|
if (tag === "select" && "value" in attrs) {
|
||||||
|
setAttrs(vnode, { value: attrs.value })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return element
|
return element
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue