Merge pull request #14642 from ayanahye/fix-chat-title-error-message

fix: error message on chat title edit
This commit is contained in:
Tim Jaeryang Baek 2025-06-04 14:09:20 +04:00 committed by GitHub
commit 7ef2345ba6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,9 +204,10 @@
const chatTitleInputKeydownHandler = (e) => {
if (e.key === 'Enter') {
e.preventDefault();
editChatTitle(id, chatTitle);
confirmEdit = false;
chatTitle = '';
setTimeout(() => {
const input = document.getElementById(`chat-title-input-${id}`);
if (input) input.blur();
}, 0);
} else if (e.key === 'Escape') {
e.preventDefault();
confirmEdit = false;