diff --git a/frontend/src/components/torrent/table.rs b/frontend/src/components/torrent/table.rs index 8135cda..c3f0eaa 100644 --- a/frontend/src/components/torrent/table.rs +++ b/frontend/src/components/torrent/table.rs @@ -1,5 +1,6 @@ use leptos::prelude::*; use leptos::task::spawn_local; +use wasm_bindgen::JsCast; use std::collections::HashSet; use icons::{ArrowUpDown, Inbox, Settings2, Play, Square, Trash2, Ellipsis, ArrowUp, ArrowDown, Check, ListFilter}; use crate::store::{get_action_messages, show_toast}; @@ -252,7 +253,7 @@ pub fn TorrentTable() -> impl IntoView { // Trigger the hidden AlertDialog from this menu item ().map(|el| el.click()); + let _ = trigger.dyn_into::().map(|el: web_sys::HtmlElement| el.click()); } }> "Toplu Sil..." @@ -263,7 +264,7 @@ pub fn TorrentTable() -> impl IntoView { // Hidden AlertDialog moved outside the DropdownMenuContent to ensure proper centering -