Browse Source

fix: convert to string before applying trim

pull/7405/head
Pranav C 10 months ago
parent
commit
647fa9ecf7
  1. 2
      packages/nc-gui/components/cell/SingleSelect.vue

2
packages/nc-gui/components/cell/SingleSelect.vue

@ -258,7 +258,7 @@ const handleClose = (e: MouseEvent) => {
useEventListener(document, 'click', handleClose, true)
const selectedOpt = computed(() => {
return options.value.find((o) => o.value === vModel.value || o.value === vModel.value?.trim())
return options.value.find((o) => o.value === vModel.value || o.value === vModel.value?.toString()?.trim())
})
const onFocus = () => {

Loading…
Cancel
Save