linmasahiro / vue3-table-lite

A simple and lightweight data table component for Vue.js 3. Features sorting, paging, row check, dynamic data rendering, supported TypeScript, and more.
https://vue3-lite-table.vercel.app/
MIT License
248 stars 74 forks source link

Bug when dynamically showing checkboxes #85

Closed dandoteverest closed 1 year ago

dandoteverest commented 1 year ago

If I have a table that initially does not have checkboxes, and I dynamically show them, the table dies a horrible death when re-rendering. Conversely, when I start out with checkboxes, then toggle back & forth between hiding & showing, it works fine.

I wrote a quick example here: https://codesandbox.io/s/hide-checkbox-rh7u66?file=/src/App.vue

Scroll down to the bottom of the example and change the initial value of 'showCheckboxes' to see both cases.

linmasahiro commented 1 year ago

Hi @dandoteverest , Thanks for your issue, already fixed on v1.3.7.