Skip to content

YearPicker is not applying --keyboard-selected when there is no default selected date passedΒ #5669

@balajis-qb

Description

@balajis-qb

Describe the bug

YearPicker view is not applying the class --keyboard-selected when we didn't pass selected date to it.

To Reproduce
Steps to reproduce the behavior:

() => {
  return <DatePicker showYearPicker dateFormat="yyyy" />;
};

Image

When the pass selected prop with a valid date, it's applying --keyboard-selected to the navigated day.

Image

Expected behavior
Like normal date picker view, we need to apply --keyboard-selected class irrespective of the availability of selected date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions