Skip to content

Commit

Permalink
Fixed #14256
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Dec 6, 2023
1 parent 259f124 commit 46a5d3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1936,6 +1936,13 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
if (!this.inline) {
this.trapFocus(event);
}
if (this.inline) {
const headerElements = DomHandler.findSingle(this.containerViewChild?.nativeElement, '.p-datepicker-header');
const element = event.target;
if (element == headerElements.children[headerElements.children.length - 1]) {
this.initFocusableCell();
}
}
break;

//escape
Expand Down

0 comments on commit 46a5d3e

Please sign in to comment.