Skip to content

Commit b7e4dbf

Browse files
anabyebruno-severino
authored andcommitted
fix(table): corrige erro no console
O componente po-table quando carregado dentro de uma po-modal, está apresentando erro no `console`. Corrigido a inicialização do po-table que causava o erro no `console`. fixes DTHFUI-9159
1 parent 27dd6e1 commit b7e4dbf

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

projects/ui/src/lib/components/po-table/po-table.component.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,6 +3170,9 @@ describe('PoTableComponent:', () => {
31703170
nativeElement: {
31713171
offsetHeight: 150
31723172
}
3173+
},
3174+
changeDetector: {
3175+
detectChanges: () => {}
31733176
}
31743177
};
31753178

@@ -3185,6 +3188,9 @@ describe('PoTableComponent:', () => {
31853188
nativeElement: {
31863189
offsetHeight: 260
31873190
}
3191+
},
3192+
changeDetector: {
3193+
detectChanges: () => {}
31883194
}
31893195
};
31903196

@@ -3200,6 +3206,9 @@ describe('PoTableComponent:', () => {
32003206
nativeElement: {
32013207
offsetHeight: 200
32023208
}
3209+
},
3210+
changeDetector: {
3211+
detectChanges: () => {}
32033212
}
32043213
};
32053214

@@ -3217,6 +3226,9 @@ describe('PoTableComponent:', () => {
32173226
anotherProperty: null
32183227
}
32193228
}
3229+
},
3230+
changeDetector: {
3231+
detectChanges: () => {}
32203232
}
32213233
};
32223234

projects/ui/src/lib/components/po-table/po-table.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ export class PoTableComponent extends PoTableBaseComponent implements AfterViewI
762762
} else {
763763
this.sizeLoading = 'lg';
764764
}
765+
766+
this.changeDetector.detectChanges();
765767
}
766768

767769
private checkChangesItems() {

0 commit comments

Comments
 (0)