vue-easytable icon indicating copy to clipboard operation
vue-easytable copied to clipboard

[Bug Report] Performance issue: clicking on a row causes every row in the table to re-render

Open stephantabor opened this issue 4 years ago • 1 comments

https://github.com/Happy-Coding-Clans/vue-easytable/blob/674d87e8e72151bf02844a53c7245ae55ceb8468/packages/ve-table/src/body/body-tr.jsx#L98-L101

One of the reasons seems to be that every table row receives the highlighted row index as a prop. Every time a user clicks a different row that index will change causing every row to re-render.

Using the clickHighlight: false option to disable row highlighting on click doesn't change the behavior. It seems to just decide whether the class is applied, but the re-render still happens.

stephantabor avatar Oct 28 '21 14:10 stephantabor

Same Issue with me I am using latest version. Any solution ? @stephantabor @huangshuwei Can you help me here.

pallavbansal avatar Aug 01 '23 02:08 pallavbansal