diff --git a/BTCPayServer/Views/UIWallets/CoinSelection.cshtml b/BTCPayServer/Views/UIWallets/CoinSelection.cshtml index 448d137b8..631354579 100644 --- a/BTCPayServer/Views/UIWallets/CoinSelection.cshtml +++ b/BTCPayServer/Views/UIWallets/CoinSelection.cshtml @@ -319,7 +319,8 @@ document.addEventListener("DOMContentLoaded", function () { res = res.filter(i => i !== item.outpoint); } - $("select option").each(function () { + // Do NOT use $("select option") or you'll break other selects like output labels + $("select[name='SelectedInputs'] option").each(function () { var selected = res.indexOf($(this).attr("value")) !== -1; $(this).attr("selected", selected ? "selected" : null); });