This commit is contained in:
Vanessa 2023-09-27 11:17:27 +08:00
parent d3aa7d731f
commit ee9df4ba43

View file

@ -308,7 +308,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
}); });
const inputElement = addDialog.element.querySelector("input") as HTMLInputElement; const inputElement = addDialog.element.querySelector("input") as HTMLInputElement;
const btnsElement = addDialog.element.querySelectorAll(".b3-button"); const btnsElement = addDialog.element.querySelectorAll(".b3-button");
dialog.bindInput(inputElement, () => { addDialog.bindInput(inputElement, () => {
(btnsElement[1] as HTMLButtonElement).click(); (btnsElement[1] as HTMLButtonElement).click();
}); });
inputElement.focus(); inputElement.focus();