Skip to content

Commit

Permalink
Fixed #15287 - Add condition for timeOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Apr 19, 2024
1 parent f41fa9c commit 536fd39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1995,8 +1995,12 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
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();
if (this.timeOnly) {
return;
} else {
if (element == headerElements.children[headerElements?.children?.length - 1]) {
this.initFocusableCell();
}
}
}
break;
Expand Down

0 comments on commit 536fd39

Please sign in to comment.