fix(editor): ai chat panel textarea selection issue (#10461)

fix AF-2244
This commit is contained in:
pengx17
2025-02-27 02:26:57 +00:00
parent 3252dd7a31
commit f25266ec88

View File

@@ -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