mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
enh: title edit should auto focus to input
This commit is contained in:
parent
a863f98c53
commit
006208f9a9
@ -234,6 +234,7 @@
|
||||
<input
|
||||
use:focusEdit
|
||||
bind:value={chatTitle}
|
||||
id="chat-title-input-{id}"
|
||||
class=" bg-transparent w-full outline-none mr-10"
|
||||
/>
|
||||
</div>
|
||||
@ -362,10 +363,15 @@
|
||||
archiveChatHandler={() => {
|
||||
archiveChatHandler(id);
|
||||
}}
|
||||
renameHandler={() => {
|
||||
renameHandler={async () => {
|
||||
chatTitle = title;
|
||||
|
||||
confirmEdit = true;
|
||||
|
||||
await tick();
|
||||
const input = document.getElementById(`chat-title-input-${id}`);
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
}}
|
||||
deleteHandler={() => {
|
||||
showDeleteConfirm = true;
|
||||
|
Loading…
Reference in New Issue
Block a user