handle special null case when hydrating

pull/3538/head
Richard Harris 5 years ago
parent 3a99a74bdc
commit 3f33d35573

@ -162,7 +162,7 @@ export function claim_text(nodes, data) {
for (let i = 0; i < nodes.length; i += 1) {
const node = nodes[i];
if (node.nodeType === 3) {
node.data = data;
node.data = '' + data;
return nodes.splice(i, 1)[0];
}
}

@ -1,2 +1,2 @@
<p></p>
<p>null</p>
<p>undefined</p>

Loading…
Cancel
Save