diff --git a/web/src/state.rs b/web/src/state.rs index 8247b85..475eb90 100644 --- a/web/src/state.rs +++ b/web/src/state.rs @@ -552,6 +552,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders) { web_sys::window().unwrap().scroll_to_with_x_and_y(0., 0.); } Msg::WindowScrolled => { + // TODO: model.content_el doesn't go to None like it should when a DOM is recreated and the refrenced element goes away if let Some(el) = model.content_el.get() { let ih = window() .inner_height()