From 1b91886e4cf7732e0970c33c1985c78964431eca Mon Sep 17 00:00:00 2001 From: crisbeto Date: Sat, 27 May 2017 10:05:15 +0200 Subject: [PATCH] fix(datepicker): focus trap not working inside popup Fixes focus trapping not working inside the datepicker in popup mode due to the A11yModule not being imported. Relates to #4804. --- src/lib/datepicker/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/datepicker/index.ts b/src/lib/datepicker/index.ts index 186757dcc51f..9b1c9527f42a 100644 --- a/src/lib/datepicker/index.ts +++ b/src/lib/datepicker/index.ts @@ -1,15 +1,14 @@ import {NgModule} from '@angular/core'; import {MdMonthView} from './month-view'; import {CommonModule} from '@angular/common'; +import {StyleModule, OverlayModule, A11yModule} from '../core'; import {MdCalendarBody} from './calendar-body'; import {MdYearView} from './year-view'; -import {OverlayModule} from '../core/overlay/overlay-directives'; import {MdDatepicker, MdDatepickerContent} from './datepicker'; import {MdDatepickerInput} from './datepicker-input'; import {MdDialogModule} from '../dialog/index'; import {MdCalendar} from './calendar'; import {MdDatepickerToggle} from './datepicker-toggle'; -import {StyleModule} from '../core/style/index'; import {MdButtonModule} from '../button/index'; import {MdDatepickerIntl} from './datepicker-intl'; @@ -31,6 +30,7 @@ export * from './year-view'; MdDialogModule, OverlayModule, StyleModule, + A11yModule, ], exports: [ MdDatepicker,