web: add TODO

This commit is contained in:
Bill Thiede 2025-02-27 15:15:42 -08:00
parent 17de318645
commit 61402858f4

View File

@ -552,6 +552,7 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
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()