From f93743dae6b00ac5a482ade6a620abbdad7f9dd8 Mon Sep 17 00:00:00 2001 From: darkskygit Date: Tue, 6 Aug 2024 08:25:28 +0000 Subject: [PATCH] fix: reset height after send (#7755) fix PD-1427 --- .../src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts | 1 + 1 file changed, 1 insertion(+) 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 abdbb748f8..6aac1f20dd 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 @@ -423,6 +423,7 @@ export class ChatPanelInput extends WithDisposable(LitElement) { const { doc } = this.host; this.textarea.value = ''; this.isInputEmpty = true; + this.textarea.style.height = 'unset'; this.updateContext({ images: [], status: 'loading',