mirror of
https://github.com/open-webui/open-webui
synced 2025-04-24 16:32:11 +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();
|
||||
|
||||
// focus on the input
|
||||
// focus on the input and select all text
|
||||
setTimeout(() => {
|
||||
const input = document.getElementById(`folder-${folderId}-input`);
|
||||
input.focus();
|
||||
if (input) {
|
||||
input.focus();
|
||||
input.select();
|
||||
}
|
||||
}, 100);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user