Skip to content

Commit

Permalink
doc blocker yew issue
Browse files Browse the repository at this point in the history
  • Loading branch information
noxware committed Oct 6, 2024
1 parent eabd29c commit 9136636
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/companion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ fn EmbeddedArea(props: &AreaProps) -> Html {
if props.interactive { "auto" } else { "none" }
);

// https://github.com/yewstack/yew/issues/3034
// https://github.com/yewstack/yew/pull/3629

html! {
<@{"foreignObject"}
x={props.area.x.to_string()}
Expand All @@ -73,7 +76,7 @@ fn EmbeddedArea(props: &AreaProps) -> Html {
height={props.area.height.to_string()}
style="overflow: hidden"
>
<div style={div_style}>
<div style={div_style} xmlns="http://www.w3.org/1999/xhtml">
{Html::from_html_unchecked(content.to_string().into())}
</div>
</@>
Expand Down

0 comments on commit 9136636

Please sign in to comment.