We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25e273 commit 37b3442Copy full SHA for 37b3442
src/lib/datepicker/datepicker.spec.ts
@@ -411,6 +411,21 @@ describe('MdDatepicker', () => {
411
412
expect(inputEl.classList).toContain('ng-touched');
413
});
414
+
415
+ it('should mark input touched on calendar selection', () => {
416
+ let inputEl = fixture.debugElement.query(By.css('input')).nativeElement;
417
418
+ expect(inputEl.classList).toContain('ng-untouched');
419
420
+ testComponent.datepicker._selectAndClose(new Date(2017, JAN, 1));
421
+ fixture.detectChanges();
422
423
+ fixture.whenStable().then(() => {
424
425
426
+ expect(inputEl.classList).toContain('ng-touched');
427
+ });
428
429
430
431
describe('datepicker with formControl', () => {
0 commit comments