finish
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user