Skip to content

Commit

Permalink
if focusable element is null try and focus on header
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueTea committed May 3, 2024
1 parent 6e9a610 commit 93d1c54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/dynamicdialog/dynamicdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy {
} else if (this.footerViewChild) {
// If the content section is empty try to focus on footer
this.focus(this.footerViewChild.nativeElement);
} else if (!focusableElement && this.headerViewChild) {
this.focus(this.headerViewChild.nativeElement);
}
}

Expand Down

0 comments on commit 93d1c54

Please sign in to comment.