Skip to content

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

Fix the bug of not saving description info when creating the issue

天舟da05ce06b95f
diff --git a/frontend/src/views/IssueDescriptionPanel.vue b/frontend/src/views/IssueDescriptionPanel.vue
index 14a8fd95dc..48c43726c5 100644
--- a/frontend/src/views/IssueDescriptionPanel.vue
+++ b/frontend/src/views/IssueDescriptionPanel.vue
@@ -105,6 +105,10 @@
@input="
(e) => {
sizeToFit(e.target);
+ // When creating the issue, we will emit the event on keystroke to update the in-memory state.
+ if (create) {
+ $emit('update-description', state.editDescription);
+ }
}
"
@focus="
@@ -181,7 +185,10 @@ export default {
onMounted(() => {
document.addEventListener("keydown", keyboardHandler);
window.addEventListener("resize", resizeTextAreaHandler);
- sizeToFit(editDescriptionTextArea.value);
+ if (props.create) {
+ state.editing = true;
+ sizeToFit(editDescriptionTextArea.value);
+ }
});
onUnmounted(() => {