Skip to content

[date-picker] Clicking Today button doesn't confirm selection if date is first scrolled into view #7438

@juuso-vaadin

Description

@juuso-vaadin

Description

When current day is scrolled away from the view and "Today" button is clicked, the visual indicator for selected day isn't updated even though the value on the field is.

DatePicker_today.mov

Expected outcome

Selected day indicator in calendar should always match the value in the input.

Minimal reproducible example

Component demo in docs

Steps to reproduce

  1. Open date picker overlay
  2. Scroll current date out of view
  3. Click "Today"

Environment

Vaadin version(s): 24

Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions