-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Describe the bug
When the browser window is wide enough to display all 12 months in a single row (responsive step minWidth: 132em, columns: 12), navigating with Ctrl+arrow keys throws ReferenceError: grid is not defined in fc-year-calendar.js. The error occurs inside getNumPerRow() at line 210, which references an undeclared variable grid instead of children.
return (breakIndex === -1 ? grid.length : breakIndex);
// ^^^^ grid is never declared; should be children.lengthExpected behavior
Ctrl+arrow key navigation works correctly at all responsive breakpoints.
Minimal reproducible example
YearCalendar calendar = new YearCalendar();
add(calendar);
// Widen the browser window until all 12 months appear in one row, then press Ctrl+RightAdd-on Version
4.6.1-SNAPSHOT
Vaadin Version
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress