Skip to content

Commit

Permalink
fix(datepicker): mark input tocuhed on calendar date selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed Jul 24, 2017
1 parent 374aaff commit c540ceb
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 @@ -212,6 +212,7 @@ export class MdDatepickerInput<D> implements AfterContentInit, ControlValueAcces
this._datepicker.selectedChanged.subscribe((selected: D) => {
this.value = selected;
this._cvaOnChange(selected);
this._onTouched();
this.dateInput.emit(new MdDatepickerInputEvent(this, this._elementRef.nativeElement));
this.dateChange.emit(new MdDatepickerInputEvent(this, this._elementRef.nativeElement));
});
Expand Down

0 comments on commit c540ceb

Please sign in to comment.