primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.85k stars 1.24k forks source link

Datatable: reorderableColumns #6764

Open ManouLabs opened 2 weeks ago

ManouLabs commented 2 weeks ago

Describe the bug

When using column reordering with selectionMode="multiple or single" enabled, each time a column is reordered, an additional copy of the first column selectionMode is appended to the column list. This results in multiple copies of the first column being displayed, cluttering the interface and potentially causing confusion for the user. The bug persists across multiple reordering actions, with each action adding yet another duplicate of the first column, rather than correctly moving columns without duplication. image

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-vbu13c?file=src%2FApp.vue

PrimeVue version

4.0.0

Vue version

4.x

Language

ES6

Build / Runtime

Vite

Browser(s)

Chrome

Steps to reproduce the behavior

1.Reorder a column.

Expected behavior

Just reordering.