From 7d67ef9bf5cac264c8d300c59cab17cc206ada0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Ker=C3=A4nen?= Date: Wed, 4 Mar 2020 17:57:40 +0200 Subject: [PATCH] Fix web_sys build (#997) CharacterData needs to be deref'd to make a Node out of it. Fixes #996 --- src/virtual_dom/vtext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtual_dom/vtext.rs b/src/virtual_dom/vtext.rs index 1a1b11c0845..50ee72993a3 100644 --- a/src/virtual_dom/vtext.rs +++ b/src/virtual_dom/vtext.rs @@ -113,7 +113,7 @@ impl VDiff for VText { self.reference.as_ref().map(|t| { let node = cfg_match! { feature = "std_web" => t.as_node(), - feature = "web_sys" => t.deref(), + feature = "web_sys" => t.deref().deref(), }; node.to_owned() })