You are viewing documentation for Vaadin Framework 8 and related products View documentation for Vaadin Framework 7 ›
Initial Position · Vaadin
Vaadin Elements - Date Picker - Initial Position

Initial Position

When vaadin-date-picker has no selected value and the dropdown is opened, it automatically scrolls to the current month. But if vaadin-date-picker has min or max properties set, it scrolls to the closest allowed date. You can make it scroll to another month by setting the initialPosition property to a date in that month.

When vaadin-date-picker already has a value selected, opening the dropdown always scrolls to the month with the selected date.

<vaadin-date-picker initial-position="2020-05-01"></vaadin-date-picker>