mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(editor): ai chat panel textarea selection issue (#10461)
fix AF-2244
This commit is contained in:
@@ -303,9 +303,11 @@ export class ChatPanelInput extends SignalWatcher(WithDisposable(LitElement)) {
|
||||
<div
|
||||
class="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
|
||||
|
||||
Reference in New Issue
Block a user