fix(frontend): leptos 0.8 migration fixes - Callback::run, StoredValue::new_local, traits
Some checks failed
Build MIPS Binary / build (push) Failing after 1m22s
Some checks failed
Build MIPS Binary / build (push) Failing after 1m22s
This commit is contained in:
@@ -14,15 +14,15 @@ pub fn ContextMenu(
|
||||
) -> impl IntoView {
|
||||
let container_ref = create_node_ref::<html::Div>();
|
||||
|
||||
let _ = on_click_outside(container_ref, move |_| on_close.call(()));
|
||||
let _ = on_click_outside(container_ref, move |_| on_close.run(()));
|
||||
|
||||
let handle_action = move |action: &str| {
|
||||
let hash = torrent_hash.clone();
|
||||
let action_str = action.to_string();
|
||||
|
||||
logging::log!("ContextMenu: Action '{}' for hash '{}'", action_str, hash);
|
||||
on_action.call((action_str, hash)); // Delegate FIRST
|
||||
on_close.call(()); // Close menu AFTER
|
||||
on_action.run((action_str, hash)); // Delegate FIRST
|
||||
on_close.run(()); // Close menu AFTER
|
||||
};
|
||||
|
||||
if !visible {
|
||||
|
||||
Reference in New Issue
Block a user