Browse Source

Merge pull request #5012 from nocodb/fix/5005-wrong-cell-state

fix(gui): use key to re-render whenever the cell value changes
pull/5015/head
Raju Udava 2 years ago committed by GitHub
parent
commit
1a1b122e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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