Fix hydration for static text nodes at the root of the template (#2184)
* Fix hydration for static text nodes at the root of the template * fix clippy
This commit is contained in:
1 parent
4a622348f2
commit
6a781af693
3 files changed
+15
-1
No files matched your search
@@ -113,7 +113,11 @@ impl WebsysDom {
|
||||
ids,
|
||||
to_mount,
|
||||
)?,
|
||||
_ => {}
|
||||
TemplateNode::Text { .. } => {
|
||||
if let Some(id) = root_id {
|
||||
ids.push(id.0 as u32);
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user