Browse Source

Merge pull request #8653 from nocodb/nc-fix/field-modal-issues

Nc fix/field modal issues
pull/8655/head
Ramesh Mane 6 months ago committed by GitHub
parent
commit
cbc25ca750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
  2. 2
      packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue

15
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -23,8 +23,17 @@ const props = defineProps<{
const emit = defineEmits(['submit', 'cancel', 'mounted', 'add', 'update']) const emit = defineEmits(['submit', 'cancel', 'mounted', 'add', 'update'])
const { formState, generateNewColumnMeta, addOrUpdate, onAlter, onUidtOrIdTypeChange, validateInfos, isEdit, disableSubmitBtn } = const {
useColumnCreateStoreOrThrow() formState,
column,
generateNewColumnMeta,
addOrUpdate,
onAlter,
onUidtOrIdTypeChange,
validateInfos,
isEdit,
disableSubmitBtn,
} = useColumnCreateStoreOrThrow()
const { getMeta } = useMetas() const { getMeta } = useMetas()
@ -334,7 +343,7 @@ const submitBtnLabel = computed(() => {
v-model:value="formState.uidt" v-model:value="formState.uidt"
show-search show-search
class="nc-column-type-input !rounded-lg" class="nc-column-type-input !rounded-lg"
:disabled="isKanban || readOnly || (isEdit && !!onlyNameUpdateOnEditColumns.find((col) => col === formState.uidt))" :disabled="isKanban || readOnly || (isEdit && !!onlyNameUpdateOnEditColumns.find((col) => col === column?.uidt))"
dropdown-class-name="nc-dropdown-column-type border-1 !rounded-lg border-gray-200" dropdown-class-name="nc-dropdown-column-type border-1 !rounded-lg border-gray-200"
@dropdown-visible-change="onDropdownChange" @dropdown-visible-change="onDropdownChange"
@change="onUidtOrIdTypeChange" @change="onUidtOrIdTypeChange"

2
packages/nc-gui/components/smartsheet/column/UITypesOptionsWithSearch.vue

@ -27,7 +27,7 @@ const onClick = (uidt: UITypes) => {
} }
const handleAutoScrollOption = () => { const handleAutoScrollOption = () => {
const option = document.querySelector('.nc-field-list-option-active') const option = document.querySelector('.nc-column-list-option-active')
if (option) { if (option) {
setTimeout(() => { setTimeout(() => {

Loading…
Cancel
Save