mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
fix: restrict input selection to SelectedInputs to avoid clearing output labels
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user