Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Set the editing focus in the nextTick after setting the edit state.

天舟11eff88c25f7
diff --git a/frontend/src/views/TaskDescription.vue b/frontend/src/views/TaskDescription.vue
index aabcca8cd5..acf03730df 100644
--- a/frontend/src/views/TaskDescription.vue
+++ b/frontend/src/views/TaskDescription.vue
@@ -136,9 +136,11 @@ export default {
onMounted(() => {
document.addEventListener("keydown", keyboardHandler);
window.addEventListener("resize", resizeTextAreaHandler);
+ if (props.new) {
+ state.edit = true;
+ }
nextTick(() => {
if (props.new) {
- state.edit = true;
editDescriptionTextArea.value.focus();
sizeToFit(editDescriptionTextArea.value);
}