diff --git a/mithril.js b/mithril.js index 9595a439..e0b464cc 100644 --- a/mithril.js +++ b/mithril.js @@ -727,13 +727,6 @@ cached.children.nodes = [] } - // edge case: setting value on doesn't work before children + // exist, so set it again after children have been created/updated + if (data.tag === "select" && "value" in data.attrs) { + setAttributes(node, data.tag, {value: data.attrs.value}, {}, + namespace) + } + if (!isNew && shouldReattach === true && node != null) { insertNode(parentElement, node, index) }