Skip to content

Commit

Permalink
reset days on dateMin + dateMax value change
Browse files Browse the repository at this point in the history
  • Loading branch information
SaeedDev94 committed Jun 16, 2022
1 parent 612edaf commit 09fe4c4
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,19 @@ export class NgPersianDatepickerComponent implements OnInit, OnDestroy {
@Input()
dateGregorianFormat: string = 'YYYY-MM-DD';

@Input()
dateMin: number | null = null;
@Input('dateMin')
set _dateMin(value: number | null) {
this.dateMin = value;
if (this.days.length) this.setViewDate();
}

@Input()
dateMax: number | null = null;
@Input('dateMax')
set _dateMax(value: number | null) {
this.dateMax = value;
if (this.days.length) this.setViewDate();
}

// time
timeEnable: boolean = false;
Expand Down

0 comments on commit 09fe4c4

Please sign in to comment.