diff --git a/src/components/tools/DonationCreate.svelte b/src/components/tools/DonationCreate.svelte index 1d3d7f5c..52e13bbb 100644 --- a/src/components/tools/DonationCreate.svelte +++ b/src/components/tools/DonationCreate.svelte @@ -73,16 +73,27 @@ ); }; + let selectRef; + // function resetComponent() { + // if (selectRef) { + // selectRef.reset(); + // console.log("Component state reset"); + // } + // } + function resetAll() { runnerinfo = { id: 0, firstname: "", lastname: "" }; donorinfo = { id: 0, firstname: "", lastname: "" }; amount = 0; address_checked = false; donor_create_new = false; - const clears = document.querySelectorAll(".clearSelect"); - clears.forEach((c) => { - c.click(); - }); + // const clears = document.querySelectorAll(".clearSelect"); + // clears.forEach((c) => { + // c.click(); + // }); + // resetComponent(); + selectRef.reset(); + document.querySelector("#jjqzqicxujrnnh1x3447x18x").focus(); } @@ -105,6 +116,8 @@