This commit is contained in:
2025-05-14 11:35:19 -03:00
parent 553a560908
commit 667e424bb6
3 changed files with 8 additions and 3 deletions

View File

@@ -135,8 +135,11 @@ const currency = new Intl.NumberFormat("pt-BR", {
connectedCallback() {
document.addEventListener("click", this.handleClickOutside);
const button = document.querySelector(
"[data-toggle=buy]",
) as HTMLButtonElement;
const form = this.querySelector("form") as HTMLFormElement;
form.addEventListener("submit", (e) => {
e.preventDefault();
@@ -145,6 +148,7 @@ const currency = new Intl.NumberFormat("pt-BR", {
) as HTMLInputElement;
if (radio.value === "SINGLE") {
button?.click();
return;
}