Browse Source

fix: select options change event

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3911/head
mertmit 2 years ago
parent
commit
672ba3112a
  1. 4
      packages/nc-gui/components/smartsheet/column/SelectOptions.vue

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

@ -79,13 +79,13 @@ onMounted(() => {
}) })
const optionChanged = (changedId: string) => { const optionChanged = (changedId: string) => {
if (changedId === defaultOption.value?.id) { if (changedId && changedId === defaultOption.value?.id) {
vModel.value.cdf = defaultOption.value.title vModel.value.cdf = defaultOption.value.title
} }
} }
const optionDropped = (changedId: string) => { const optionDropped = (changedId: string) => {
if (changedId === defaultOption.value?.id) { if (changedId && changedId === defaultOption.value?.id) {
vModel.value.cdf = null vModel.value.cdf = null
defaultOption.value = null defaultOption.value = null
} }

Loading…
Cancel
Save