Browse Source

fix: use text length as key instead of text

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5015/head
mertmit 2 years ago
parent
commit
a0db4eb7ab
  1. 2
      packages/nc-gui/components/cell/ClampedText.vue

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

@ -24,7 +24,7 @@ onMounted(() => {
<template> <template>
<div ref="wrapper"> <div ref="wrapper">
<text-clamp <text-clamp
:key="key + props.value" :key="`clamp-${key}-${props.value?.toString().length || 0}`"
class="w-full h-full break-all" class="w-full h-full break-all"
:text="`${props.value || ''}`" :text="`${props.value || ''}`"
:max-lines="props.lines" :max-lines="props.lines"

Loading…
Cancel
Save