Skip to content

Commit

Permalink
fix(datepicker): mark input touched when date is selected on claendar
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed Jul 24, 2017
1 parent b3fb2ff commit db4db73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/datepicker/datepicker-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export class MdDatepickerInput<D> implements AfterContentInit, ControlValueAcces
this._datepickerSubscription =
this._datepicker.selectedChanged.subscribe((selected: D) => {
this.value = selected;
this._onTouched();
this._cvaOnChange(selected);
this.dateInput.emit(new MdDatepickerInputEvent(this, this._elementRef.nativeElement));
this.dateChange.emit(new MdDatepickerInputEvent(this, this._elementRef.nativeElement));
Expand Down

0 comments on commit db4db73

Please sign in to comment.