fix: Enter edit mode with text pre-selected

This commit is contained in:
hurxxxx 2025-03-20 00:27:53 +09:00
parent 11f2aaf7b1
commit 18a8a375ab

View File

@ -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);
};