Fixed #5057 - DataTable: persistent expandedRows with dataKey doesn't working properly
parent
b843bc9de3
commit
1fcefea636
|
@ -276,8 +276,11 @@ export default {
|
|||
};
|
||||
},
|
||||
watch: {
|
||||
expandedRows(newValue) {
|
||||
this.d_rowExpanded = this.dataKey ? newValue?.[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : newValue?.some((d) => this.equals(this.rowData, d));
|
||||
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: {
|
||||
|
|
Loading…
Reference in New Issue