diff --git a/packages/nc-gui/components/cell/ClampedText.vue b/packages/nc-gui/components/cell/ClampedText.vue index 515a95bed3..4a541268e2 100644 --- a/packages/nc-gui/components/cell/ClampedText.vue +++ b/packages/nc-gui/components/cell/ClampedText.vue @@ -3,35 +3,18 @@ const props = defineProps<{ value?: string | number | null lines?: number }>() - -const wrapper = ref() - -const key = ref(0) - -const debouncedRefresh = useDebounceFn(() => { - key.value++ -}, 500) - -onMounted(() => { - const observer = new ResizeObserver(() => { - debouncedRefresh() - }) - - observer.observe(wrapper.value) -}) 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!)) +})