Fix bug in Form element updates in which switching to a different type of Element caused a runtime error.
commit5160fc7005a2e54f692ba3e2237a6aa8806f1df7
authorevancz <info@elm-lang.org>
dateTue 21 May 2013, 22:08 (13 years ago)
parent970277f
runtime/Render/Collage.js+1
@@ -292,6 +292,7 @@ function updateTracker(w,h,div) {
292292 var node = container.firstChild;
293293 if (node) {
294294 Render.update(node, node.oldElement, elem);
295+ node = container.firstChild;
295296 } else {
296297 node = Render.render(elem);
297298 container.appendChild(node);