diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts
index f78c14608..8e5d93e1b 100644
--- a/app/src/ai/actions.ts
+++ b/app/src/ai/actions.ts
@@ -36,14 +36,14 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {
click() {
const dialog = new Dialog({
title: window.siyuan.languages.aiCustomAction,
- content: `
+ content: `
`,
width: isMobile() ? "92vw" : "520px",
});
- const inputElement = dialog.element.querySelector("input") as HTMLInputElement;
+ const inputElement = dialog.element.querySelector("textarea");
const btnsElement = dialog.element.querySelectorAll(".b3-button");
dialog.bindInput(inputElement, () => {
(btnsElement[1] as HTMLButtonElement).click();
diff --git a/app/src/ai/chat.ts b/app/src/ai/chat.ts
index 425302031..92f03bfd3 100644
--- a/app/src/ai/chat.ts
+++ b/app/src/ai/chat.ts
@@ -6,14 +6,14 @@ import {fillContent} from "./actions";
export const AIChat = (protyle: IProtyle, element: Element) => {
const dialog = new Dialog({
title: "AI Chat",
- content: `
+ content: `
`,
width: isMobile() ? "92vw" : "520px",
});
- const inputElement = dialog.element.querySelector("input") as HTMLInputElement;
+ const inputElement = dialog.element.querySelector("textarea");
const btnsElement = dialog.element.querySelectorAll(".b3-button");
dialog.bindInput(inputElement, () => {
(btnsElement[1] as HTMLButtonElement).click();