mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-10 03:27:57 +00:00
refac
This commit is contained in:
parent
45e49d33e5
commit
a209f7f6e0
2 changed files with 8 additions and 4 deletions
|
|
@ -1861,9 +1861,11 @@
|
|||
|
||||
history.currentId = userMessageId;
|
||||
|
||||
// focus on chat input
|
||||
const chatInput = document.getElementById('chat-input');
|
||||
chatInput?.focus();
|
||||
// focus on chat input (skip during voice call to avoid triggering mobile keyboard)
|
||||
if (!$showCallOverlay) {
|
||||
const chatInput = document.getElementById('chat-input');
|
||||
chatInput?.focus();
|
||||
}
|
||||
|
||||
saveSessionSelectedModels();
|
||||
|
||||
|
|
|
|||
|
|
@ -343,7 +343,9 @@
|
|||
}
|
||||
|
||||
chatInputElement?.setText(text);
|
||||
chatInputElement?.focus();
|
||||
if (!$showCallOverlay) {
|
||||
chatInputElement?.focus();
|
||||
}
|
||||
|
||||
if (text !== '') {
|
||||
text = await inputVariableHandler(text);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue