Clear transaction output when user starts typing a new transaction
This commit is contained in:
parent
8844ccb842
commit
9c098119b6
@ -1024,7 +1024,14 @@
|
|||||||
button.innerHTML = originalHTML;
|
button.innerHTML = originalHTML;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Clear transaction output when user starts typing a new transaction
|
||||||
|
const sendFormFields = ["privateKey", "recipientAddress", "sendAmount"];
|
||||||
|
sendFormFields.forEach(fieldId => {
|
||||||
|
document.getElementById(fieldId).addEventListener("input", () => {
|
||||||
|
document.getElementById("sendOutput").innerHTML = "";
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Send Transaction functionality
|
// Send Transaction functionality
|
||||||
document
|
document
|
||||||
.getElementById("sendForm")
|
.getElementById("sendForm")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user