Skip to content

Commit

Permalink
Fix primefaces#15657 reading properties undefined Editable
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-2512 committed May 22, 2024
1 parent 3bb279a commit fae21e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4073,8 +4073,8 @@ export class EditableColumn implements OnChanges, AfterViewInit, OnDestroy {

constructor(public dt: Table, public el: ElementRef, public zone: NgZone) {}

public ngOnChanges({ data }: SimpleChanges): void {
if (this.el.nativeElement && !data.firstChange) {
public ngOnChanges(changes: SimpleChanges): void {
if (this.el.nativeElement && (!changes.data?.firstChange)) {
this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, <number>this.rowIndex);
}
}
Expand Down

0 comments on commit fae21e7

Please sign in to comment.