mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
Merge pull request #14642 from ayanahye/fix-chat-title-error-message
fix: error message on chat title edit
This commit is contained in:
commit
7ef2345ba6
1 changed files with 4 additions and 3 deletions
|
|
@ -204,9 +204,10 @@
|
||||||
const chatTitleInputKeydownHandler = (e) => {
|
const chatTitleInputKeydownHandler = (e) => {
|
||||||
if (e.key === 'Enter') {
|
if (e.key === 'Enter') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
editChatTitle(id, chatTitle);
|
setTimeout(() => {
|
||||||
confirmEdit = false;
|
const input = document.getElementById(`chat-title-input-${id}`);
|
||||||
chatTitle = '';
|
if (input) input.blur();
|
||||||
|
}, 0);
|
||||||
} else if (e.key === 'Escape') {
|
} else if (e.key === 'Escape') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
confirmEdit = false;
|
confirmEdit = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue