There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(editor): ai chat panel textarea selection issue (#10461)
pengx17f25266ec8853
diff --git a/packages/frontend/core/src/blocksuite/ai/chat-panel/chat-panel-input.ts b/packages/frontend/core/src/blocksuite/ai/chat-panel/chat-panel-input.tsindex 6a250f203f..55f91f5ff6 100644--- a/packages/frontend/core/src/blocksuite/ai/chat-panel/chat-panel-input.ts+++ b/packages/frontend/core/src/blocksuite/ai/chat-panel/chat-panel-input.ts@@ -303,9 +303,11 @@ export class ChatPanelInput extends SignalWatcher(WithDisposable(LitElement)) {<divclass="chat-panel-input"@pointerdown=${(e: MouseEvent) => {- // by default the div will be focused and will blur the textarea- e.preventDefault();- this.textarea.focus();+ if (e.target !== this.textarea) {+ // by default the div will be focused and will blur the textarea+ e.preventDefault();+ this.textarea.focus();+ }}}>${hasImages