This commit is contained in:
Vanessa 2023-07-02 09:21:55 +08:00
parent 0c9f588ada
commit 22ffc30245
3 changed files with 8 additions and 3 deletions

View file

@ -69,7 +69,7 @@ export class Setting {
if (actionElement) {
if (["INPUT", "TEXTAREA"].includes(actionElement.tagName)) {
dialog.bindInput(actionElement as HTMLInputElement, () => {
(btnsElement[1] as HTMLButtonElement).click();
btnsElement[1].dispatchEvent(new CustomEvent("click"));
});
}
if (actionElement.tagName === "TEXTAREA") {