From 79b8875d9b7d2322a613fb5ea4d150859424ef66 Mon Sep 17 00:00:00 2001 From: Jovansonlee Cesar Date: Tue, 16 Apr 2024 19:12:39 +0800 Subject: [PATCH] fix: on_popstate should listen to popstate, was mouseup(copied) --- crates/core/src/dom/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/dom/window.rs b/crates/core/src/dom/window.rs index 1ba29f6f..0c3c5d5b 100644 --- a/crates/core/src/dom/window.rs +++ b/crates/core/src/dom/window.rs @@ -191,7 +191,7 @@ impl Window { }); window() .add_event_listener_with_callback( - intern("mouseup"), + intern("popstate"), closure_cb.as_ref().unchecked_ref(), ) .expect("add event callback");