From 7e82a6e7874eb83638ab6e565723528a1d86296f Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 2 Mar 2022 15:47:43 +0900 Subject: [PATCH] Minor fix to usage of html element for info_text --- front_end/Cargo.toml | 2 +- front_end/src/yew_components.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front_end/Cargo.toml b/front_end/Cargo.toml index 948d964..c1e3726 100644 --- a/front_end/Cargo.toml +++ b/front_end/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" yew = "0.19" log = "0.4.6" wasm-logger = "0.2.0" -web-sys = { version = "0.3.56", features = ["HtmlParagraphElement"] } +web-sys = { version = "0.3.56", features = ["HtmlDivElement"] } diff --git a/front_end/src/yew_components.rs b/front_end/src/yew_components.rs index ecca473..2dd6308 100644 --- a/front_end/src/yew_components.rs +++ b/front_end/src/yew_components.rs @@ -164,7 +164,7 @@ impl Component for Wrapper { // DEBUG //log::info!("{}", &output_str); if let Some(info_text) = - shared.info_text_ref.cast::() + shared.info_text_ref.cast::() { // create the new text to be appended in the output let window = web_sys::window().expect("no window exists");