Skip to content

Commit

Permalink
Merge pull request #15448 from RogueTea/nested-dialog-keyboard-naviga…
Browse files Browse the repository at this point in the history
…tion

Nested dialog keyboard navigation
  • Loading branch information
cetincakiroglu authored May 9, 2024
2 parents 2217228 + 1146c26 commit ba4346a
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 ba4346a

Please sign in to comment.