fix: remove on:close event from add torrent modal to prevent callback panic

- Dialog's on:close was calling callback after scope disposal
- Caused 'could not get stored value' error in leptos_reactive
- on_close callback still properly called via handle_close and submit success
This commit is contained in:
spinline
2026-02-05 22:52:47 +03:00
parent 614d6a3117
commit 17551af8b5

View File

@@ -89,7 +89,7 @@ pub fn AddTorrentModal(
}; };
view! { view! {
<dialog node_ref=dialog_ref class="modal modal-bottom sm:modal-middle" on:close=move |_| on_close.call(())> <dialog node_ref=dialog_ref class="modal modal-bottom sm:modal-middle">
<div class="modal-box"> <div class="modal-box">
<h3 class="font-bold text-lg">"Add Torrent"</h3> <h3 class="font-bold text-lg">"Add Torrent"</h3>
<p class="py-4">"Enter a Magnet URI or direct URL to a .torrent file."</p> <p class="py-4">"Enter a Magnet URI or direct URL to a .torrent file."</p>