Skip to content

Commit

Permalink
Merge pull request #12300 from primefaces/issue-12282
Browse files Browse the repository at this point in the history
Fixed #12282 - Calendar | Unexpected focus happens in disabled mode
  • Loading branch information
cetincakiroglu authored Nov 29, 2022
2 parents a7c7b15 + 472b3ad commit 4e4f798
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,9 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {

if (!this.preventFocus && (!this.navigationState || !this.navigationState.button)) {
setTimeout(() => {
cell.focus();
if (!this.disabled) {
cell.focus();
}
}, 1);
}

Expand Down

0 comments on commit 4e4f798

Please sign in to comment.