on master help sign in
Fix the updater for plain images.
f164a98evancz
runtime/Render/Element.js+1−1
@@ -170,7 +170,7 @@ function update(node, curr, next) {
170 if (nextE._0 !== currE._0) node.innerHTML = nextE._0;
170 if (nextE._0 !== currE._0) node.innerHTML = nextE._0;
171 break;
171 break;
172 case "Image":
172 case "Image":
173− if (nextE._0.ctor !== 'Plain') {
173+ if (nextE._0.ctor === 'Plain') {
174 if (nextE._3 !== currE._3) node.src = nextE._3;
174 if (nextE._3 !== currE._3) node.src = nextE._3;
175 } else if (!eq(nextE,currE) ||
175 } else if (!eq(nextE,currE) ||
176 next.props.width !== curr.props.width ||
176 next.props.width !== curr.props.width ||