Skip to content

Commit

Permalink
fix: datepicker when its disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SoyDiego committed Jan 8, 2025
1 parent 5020d66 commit 9b8b22d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/primeng/src/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2142,6 +2142,10 @@ export class DatePicker extends BaseComponent implements OnInit, AfterContentIni
}

onButtonClick(event: Event, inputfield: any = this.inputfieldViewChild?.nativeElement) {
if (this.disabled) {
return;
}

if (!this.overlayVisible) {
inputfield.focus();
this.showOverlay();
Expand Down

0 comments on commit 9b8b22d

Please sign in to comment.