diff --git a/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts b/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts index d468c36b44..3b1fc613cd 100644 --- a/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts +++ b/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts @@ -376,7 +376,14 @@ export class ChatPanelInput extends SignalWatcher(WithDisposable(LitElement)) { user-select: none; } -
+
{ + // by default the div will be focused and will blur the textarea + e.preventDefault(); + this.textarea.focus(); + }} + > ${hasImages ? this._renderImages(images) : nothing} ${this.chatContextValue.quote ? html`