Skip to content

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

fix: dropdown popover teleport target (#6650)

Liu Ji5b557387fb3f
diff --git a/frontend/src/components/SchemaEditor/Panels/TableEditor.vue b/frontend/src/components/SchemaEditor/Panels/TableEditor.vue
index 7a68a8c087..7a9af7ffa6 100644
--- a/frontend/src/components/SchemaEditor/Panels/TableEditor.vue
+++ b/frontend/src/components/SchemaEditor/Panels/TableEditor.vue
@@ -120,6 +120,7 @@
trigger="click"
:disabled="disableAlterColumn(column)"
:options="dataTypeOptions"
+ to="body"
@select="(dataType: string) => (column.type = dataType)"
>
<button class="absolute right-5">
@@ -143,6 +144,7 @@
trigger="click"
:disabled="disableAlterColumn(column)"
:options="dataDefaultOptions"
+ to="body"
@select="(defaultString:string)=>handleColumnDefaultFieldChange(column, defaultString)"
>
<button class="absolute right-5">
@@ -275,6 +277,7 @@ import { cloneDeep, isUndefined, flatten } from "lodash-es";
import scrollIntoView from "scroll-into-view-if-needed";
import { computed, nextTick, reactive, ref, watch } from "vue";
import { useI18n } from "vue-i18n";
+import { NDropdown } from "naive-ui";
import {
generateUniqueTabId,
useNotificationStore,