diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue
index aa52076a5d..ea17a56761 100644
--- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue
+++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/customSelectOptions.vue
@@ -8,7 +8,14 @@
>
mdi-arrow-down-drop-circle
-
+
mdi-close
@@ -60,6 +67,14 @@ export default {
methods: {
syncState() {
this.localState = (this.value || '').split(',').map(v => v.replace(/\\'/g, '\'').replace(/^'|'$/g, ''))
+ },
+ listenForComma(index, value) {
+ const normalisedValue = value.trim()
+ if (normalisedValue.endsWith(',')) {
+ this.localState.push('')
+ return
+ }
+ this.localState[index] = normalisedValue
}
}
}