Browse Source

fix(nc-gui): single select default value option update issue on adding new option from MFE (#8819)

pull/8821/head
Ramesh Mane 6 months ago committed by GitHub
parent
commit
09e2e1817a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
  2. 2
      packages/nc-gui/components/smartsheet/column/SelectOptions.vue

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

@ -400,7 +400,12 @@ const filterOption = (input: string, option: { value: UITypes }) => {
<SmartsheetColumnUITypesOptionsWithSearch :options="uiTypesOptions" @selected="onSelectType" />
</template>
<a-form-item v-else-if="!props.hideType" class="flex-1">
<a-form-item
v-else-if="!props.hideType"
class="flex-1"
@keydown.up.stop="handleResetHoverEffect"
@keydown.down.stop="handleResetHoverEffect"
>
<a-select
v-model:value="formState.uidt"
show-search

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

@ -342,7 +342,7 @@ onMounted(() => {
options.value = vModel.value.colOptions.options
let indexCounter = 0
options.value.map((el) => {
options.value = options.value.map((el) => {
el.index = indexCounter++
return el
})

Loading…
Cancel
Save