auto focus message field after anonymous user has entered nickname
This commit is contained in:
parent
ca13d237a3
commit
3bc8d2466b
@ -1,4 +1,5 @@
|
|||||||
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
||||||
|
// SPDX-FileCopyrightText: 2025 Nicolas Chesnais <https://autre.space>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-only
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
@ -22,6 +23,7 @@ async function setNickname (ev, model) {
|
|||||||
_converse.api.trigger('livechatViewerModeSetNickname', model, nick, {
|
_converse.api.trigger('livechatViewerModeSetNickname', model, nick, {
|
||||||
synchronous: true
|
synchronous: true
|
||||||
})
|
})
|
||||||
|
document.querySelector('.chat-textarea')?.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
class SlowMode extends CustomElement {
|
class SlowMode extends CustomElement {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user