Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): auto-focus issue title input when creating issue (#2009)
Liu Ji05f80b1e2169
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vueindex 3d72c67871..ac0a159f13 100644--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue@@ -125,6 +125,7 @@data-label="bb-issue-sql-editor":value="state.editStatement":readonly="!state.editing"+ :auto-focus="false"@change="onStatementChange"@ready="handleMonacoEditorReady"/>diff --git a/frontend/src/components/MonacoEditor/MonacoEditor.vue b/frontend/src/components/MonacoEditor/MonacoEditor.vueindex 44ecc100db..fc730db1d0 100644--- a/frontend/src/components/MonacoEditor/MonacoEditor.vue+++ b/frontend/src/components/MonacoEditor/MonacoEditor.vue@@ -35,6 +35,10 @@ const props = defineProps({type: Boolean,default: false,},+ autoFocus: {+ type: Boolean,+ default: true,+ },});const emit = defineEmits<{@@ -159,7 +163,7 @@ onMounted(async () => {editorInstanceRef.value = editorInstance;// set the editor focus when the tab is selected- if (!readOnly.value) {+ if (!readOnly.value && props.autoFocus) {editorInstance.focus();nextTick(() => setPositionAtEndOfLine(editorInstance));}