mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix: Enter edit mode with text pre-selected
This commit is contained in:
parent
11f2aaf7b1
commit
18a8a375ab
1 changed files with 5 additions and 2 deletions
|
|
@ -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 a new issue