Skip to content

Commit

Permalink
#918 datepicker enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
sinchananj12 committed Jul 12, 2023
1 parent 2bcf768 commit c55fe9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
[(ngModel)]="selectedDate"
(blur)="validateDate()"
[disabled]="control.disabled"
(input)="closeCalendar()"
(click)="toggleDatepicker($event)"
/>
<go-icon-button
class="go-datepicker__toggle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@ export class GoDatepickerComponent extends GoFormBaseComponent implements OnDest
private initializePlaceholder(): void {
this.placeholder = this.placeholder || LocaleFormat.format(this.locale);
}

closeCalendar() {
if (this.goCalendar.isOpen) {
this.goCalendar.closeCalendar();
}
}
}

0 comments on commit c55fe9f

Please sign in to comment.