mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #5057 - DataTable: persistent expandedRows with dataKey doesn't working properly
This commit is contained in:
parent
b843bc9de3
commit
1fcefea636
1 changed files with 5 additions and 2 deletions
|
@ -276,9 +276,12 @@ export default {
|
|||
};
|
||||
},
|
||||
watch: {
|
||||
expandedRows(newValue) {
|
||||
expandedRows: {
|
||||
immediate: true,
|
||||
handler(newValue) {
|
||||
this.d_rowExpanded = this.dataKey ? newValue?.[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : newValue?.some((d) => this.equals(this.rowData, d));
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
columnProp(col, prop) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue