Skip to content

Commit 157bda1

Browse files
crisbetoandrewseguin
authored andcommitted
fix(datepicker): focus trap not working inside popup (#4839)
Fixes focus trapping not working inside the datepicker in popup mode due to the A11yModule not being imported. Relates to #4804.
1 parent cedf219 commit 157bda1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/datepicker/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import {NgModule} from '@angular/core';
22
import {MdMonthView} from './month-view';
33
import {CommonModule} from '@angular/common';
4+
import {StyleModule, OverlayModule, A11yModule} from '../core';
45
import {MdCalendarBody} from './calendar-body';
56
import {MdYearView} from './year-view';
6-
import {OverlayModule} from '../core/overlay/overlay-directives';
77
import {MdDatepicker, MdDatepickerContent} from './datepicker';
88
import {MdDatepickerInput} from './datepicker-input';
99
import {MdDialogModule} from '../dialog/index';
1010
import {MdCalendar} from './calendar';
1111
import {MdDatepickerToggle} from './datepicker-toggle';
12-
import {StyleModule} from '../core/style/index';
1312
import {MdButtonModule} from '../button/index';
1413
import {MdDatepickerIntl} from './datepicker-intl';
1514

@@ -31,6 +30,7 @@ export * from './year-view';
3130
MdDialogModule,
3231
OverlayModule,
3332
StyleModule,
33+
A11yModule,
3434
],
3535
exports: [
3636
MdDatepicker,

0 commit comments

Comments
 (0)