mirror of
https://github.com/open-webui/open-webui
synced 2025-04-26 09:10:15 +00:00
fix: Enter edit mode with text pre-selected
This commit is contained in:
parent
11f2aaf7b1
commit
18a8a375ab
@ -309,10 +309,13 @@
|
|||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
|
|
||||||
// focus on the input
|
// focus on the input and select all text
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const input = document.getElementById(`folder-${folderId}-input`);
|
const input = document.getElementById(`folder-${folderId}-input`);
|
||||||
input.focus();
|
if (input) {
|
||||||
|
input.focus();
|
||||||
|
input.select();
|
||||||
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user