Browse Source

fix(gui): use key to re-render whenever the cell value changes

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5012/head
Pranav C 2 years ago
parent
commit
6416388153
  1. 7
      packages/nc-gui/components/cell/ClampedText.vue

7
packages/nc-gui/components/cell/ClampedText.vue

@ -19,6 +19,11 @@ onMounted(() => {
<template>
<div ref="wrapper">
<text-clamp :key="key" class="w-full h-full break-all" :text="`${props.value || ''}`" :max-lines="props.lines" />
<text-clamp
:key="key + props.value"
class="w-full h-full break-all"
:text="`${props.value || ''}`"
:max-lines="props.lines"
/>
</div>
</template>

Loading…
Cancel
Save