Skip to content

Commit

Permalink
fix(_updateItemForm): enable reset
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalet committed Feb 6, 2025
1 parent 13dd498 commit ba4d756
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,13 @@ export class NgxMatBirthdayInputComponent
{
minute: minute,
hour: hour,
day: day ? day.padStart(2, '0') : '',
month: month ? month.padStart(2, '0') : '',
year: year,
datePicker: date ? new Date(date) : new Date(),
},
{ emitEvent: false },
)

this.itemForm.get('day')?.patchValue(day.padStart(2, '0'), { emitEvent: true })
this.itemForm.get('month')?.patchValue(month.padStart(2, '0'), { emitEvent: true })
}

registerOnChange(fn: any): void {
Expand Down

0 comments on commit ba4d756

Please sign in to comment.