Skip to content

Commit

Permalink
Fix web_sys build (#997)
Browse files Browse the repository at this point in the history
CharacterData needs to be deref'd to make a Node out of it.
Fixes #996
  • Loading branch information
Detegr authored Mar 4, 2020
1 parent 8448e00 commit 7d67ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual_dom/vtext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand Down

0 comments on commit 7d67ef9

Please sign in to comment.