diff --git a/src/dom.rs b/src/dom.rs index 12f3aff..21a9918 100644 --- a/src/dom.rs +++ b/src/dom.rs @@ -527,7 +527,7 @@ impl DomBuilder where A: AsRef { } #[inline] - pub fn text(self, value: &str) -> Self { + pub fn text(mut self, value: &str) -> Self { self.check_children(); self.element.as_ref().set_text_content(Some(value)); self @@ -546,7 +546,7 @@ impl DomBuilder where A: AsRef { } #[inline] - pub fn text_signal(self, value: C) -> Self + pub fn text_signal(mut self, value: C) -> Self where B: AsStr, C: Signal + 'static {