fix(editor): should focus the textarea will clicking the chat input box (#9983)
 Clicking outside of the textarea should also focuses the textarea
This commit is contained in:
@@ -376,7 +376,14 @@ export class ChatPanelInput extends SignalWatcher(WithDisposable(LitElement)) {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="chat-panel-input">
|
<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();
|
||||||
|
}}
|
||||||
|
>
|
||||||
${hasImages ? this._renderImages(images) : nothing}
|
${hasImages ? this._renderImages(images) : nothing}
|
||||||
${this.chatContextValue.quote
|
${this.chatContextValue.quote
|
||||||
? html`<div class="chat-selection-quote">
|
? html`<div class="chat-selection-quote">
|
||||||
|
|||||||
Reference in New Issue
Block a user