Skip to content

Commit

Permalink
Merge pull request #15312 from primefaces/issue-15287
Browse files Browse the repository at this point in the history
Fixed #15287 - Add condition for timeOnly
  • Loading branch information
cetincakiroglu authored Apr 19, 2024
2 parents fb38039 + 536fd39 commit 1306198
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 1306198

Please sign in to comment.