diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index ebef31bd75..3a3d5f56fe 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -313,11 +313,35 @@ const handleClose = (e: MouseEvent) => { } useEventListener(document, 'click', handleClose, true) + +// todo: maintain order +const selectedOpts = computed(() => { + return options.value.filter((o) => vModel.value.includes(o.value!)) +})