fix: Enter edit mode with text pre-selected
This commit is contained in:
1 parent
11f2aaf7b1
commit
18a8a375ab
1 file changed
+5
-2
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user