DataTable: v-model:editingRows is not reactive when changed from outside #4337
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When changed programmatically, the editingRows prop is not reactive, we need an extra step to have the DataTable reflect the changes.
See repro sandbox below.
Reproducer
https://codesandbox.io/p/sandbox/primevue-demo-forked-ms5vl4?file=/src/App.vue:12,9
PrimeVue version
3.32.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Workaround:
We can force the DataTable to update itself using $forceUpdate (check the "Edit row with forceUpdate" button) or using the :key trick, but it is generally discouraged to do so, and it's usually preferable to let Vue's core reactivity do the job.
Expected behavior
The DataTable should reflect the changes made to v-model:editingRows when editingRows are changed from outside the component (i.e. programmatically)
The text was updated successfully, but these errors were encountered: