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.
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.
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.