@energycap/components 0.32.2 → 0.32.3-ECAP-12658-MasterDetailRow-Updates.20220930-1055
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6340,11 +6340,18 @@ class TableMasterRowComponent {
|
|
|
6340
6340
|
* has no details, remove the detail row
|
|
6341
6341
|
*/
|
|
6342
6342
|
updateDetailRow() {
|
|
6343
|
+
console.log(this.hasDetails);
|
|
6344
|
+
console.log(this.detailView);
|
|
6343
6345
|
if (this.hasDetails) {
|
|
6344
6346
|
if (!this.detailTemplate) {
|
|
6345
6347
|
console.error(`A value for the [detailTemplate] input is required when 'hasDetails' is true.`);
|
|
6346
6348
|
return;
|
|
6347
6349
|
}
|
|
6350
|
+
// First check to see if the detailView is already present and if so, remove it so we don't get a
|
|
6351
|
+
// duplicate detail view
|
|
6352
|
+
if (this.detailView !== undefined) {
|
|
6353
|
+
this.removeDetailView();
|
|
6354
|
+
}
|
|
6348
6355
|
this.detailView = this.detailRowTemplate.createEmbeddedView({});
|
|
6349
6356
|
this.updateVisibility();
|
|
6350
6357
|
}
|