diff --git a/Cargo.toml b/Cargo.toml index 8dc427f..f027e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ members = [ [dependencies] console_error_panic_hook = "0.1.7" -leptos = { version = "0.8.1", features = ["csr", "nightly"] } +leptos = { version = "0.8.1", features = ["csr"] } sqlite-wasm-rs = { git = "https://github.com/Spxg/sqlite-wasm-rs.git", default-features = false, features = ["precompiled"] } istyles = { path = "crates/istyles" } aceditor = { path = "crates/aceditor" } diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..05f371f --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.87.0" +targets = ["wasm32-unknown-unknown"] diff --git a/src/app/pop_button.rs b/src/app/pop_button.rs index 042b28c..3c0f8cf 100644 --- a/src/app/pop_button.rs +++ b/src/app/pop_button.rs @@ -40,7 +40,7 @@ where } if event.key() == "Escape" { - set_open(false); + set_open.set(false); } }; @@ -75,7 +75,7 @@ where .as_ref() .is_some_and(|floating| floating.deref().contains(node.as_ref())) }) { - set_open(false); + set_open.set(false); } } }; @@ -183,7 +183,7 @@ where let float = move || { let menu_clone = Arc::clone(&menu); view! { - +