Skip to content

Commit

Permalink
#918 enhancement of go-date-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
sinchananj12 committed Jul 12, 2023
1 parent 2bcf768 commit 356fdf5
Show file tree
Hide file tree
Showing 2 changed files with 7 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,9 @@ 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 356fdf5

Please sign in to comment.