Skip to content

Commit

Permalink
Added nullcheck before accessing property
Browse files Browse the repository at this point in the history
Added nullcheck before accessing property to avoid error described in: primefaces#10909
  • Loading branch information
LorenzSLA authored Dec 2, 2021
1 parent 7ad8d1b commit 3fc1510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ export class Dialog implements AfterContentInit,OnInit,OnDestroy {
break;

case 'void':
if (this.modal) {
if (this.wrapper && this.modal) {
DomHandler.addClass(this.wrapper, 'p-component-overlay-leave');
}
break;
Expand Down

0 comments on commit 3fc1510

Please sign in to comment.