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 967815b commit 10f2d89Copy full SHA for 10f2d89
src/main/resources/META-INF/frontend/fc-year-calendar/fc-year-calendar.js
@@ -180,12 +180,13 @@ export class FcYearCalendarElement extends ThemableMixin(PolymerElement) {
180
_onKeyDown(ev) {
181
182
const isMonthCalendar = elem => elem.tagName.toLowerCase()=="fc-month-calendar";
183
+ let path = ev.path || (ev.composedPath && ev.composedPath());
184
- if (ev.path.length<3 || !isMonthCalendar(ev.path[2])) {
185
+ if (!path || path.length<3 || !isMonthCalendar(path[2])) {
186
return;
187
}
188
- const monthCalendar = ev.path[2];
189
+ const monthCalendar = path[2];
190
const key = monthCalendar._eventKey(ev);
191
if (!key) return;
192
0 commit comments