Merge pull request #84 from shivan2418/preselect_text_when_changing_name

preselect text in the Rename chat modal.
This commit is contained in:
Niek van der Maas 2023-03-29 09:09:07 +02:00 committed by GitHub
commit 88b88e67bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -298,7 +298,8 @@
const showChatNameSettings = () => { const showChatNameSettings = () => {
chatNameSettings.classList.add('is-active'); chatNameSettings.classList.add('is-active');
(chatNameSettings.querySelector('#settings-chat-name') as HTMLInputElement).focus() (chatNameSettings.querySelector('#settings-chat-name') as HTMLInputElement).focus();
(chatNameSettings.querySelector('#settings-chat-name') as HTMLInputElement).select()
} }
const saveChatNameSettings = () => { const saveChatNameSettings = () => {