diff --git a/src/components/tools/DonationCreate.svelte b/src/components/tools/DonationCreate.svelte index 52e13bbb..00e80926 100644 --- a/src/components/tools/DonationCreate.svelte +++ b/src/components/tools/DonationCreate.svelte @@ -134,8 +134,10 @@ inputAriaLabel={$_("search-for-runner-by-name-or-id")} inputPlaceholder={$_("search-for-runner-by-name-or-id")} noOptionsText={$_("no-runners-found")} - on:onSelected={() => { - document.querySelector("#donation_amount_eur").focus(); + on:onSelected={(data) => { + if (data.detail !== null) { + document.querySelector("#donation_amount_eur").focus(); + } }} />