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
|
<div
|
||||||
class="chat-panel-input"
|
class="chat-panel-input"
|
||||||
@pointerdown=${(e: MouseEvent) => {
|
@pointerdown=${(e: MouseEvent) => {
|
||||||
|
if (e.target !== this.textarea) {
|
||||||
// by default the div will be focused and will blur the textarea
|
// by default the div will be focused and will blur the textarea
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.textarea.focus();
|
this.textarea.focus();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
${hasImages
|
${hasImages
|
||||||
|
|||||||
Reference in New Issue
Block a user