Skip to content

Accessibility: Calendar opens automatically when receiving focus #410

Description

@danalt06

Describe the bug

The PrimeReact Calendar/DatePicker popup opens automatically when the Calendar trigger receives keyboard focus.
Simply focusing an interactive control should not activate or expand it.

Reproducible on the primereact documentation page: https://v9.primereact.org/calendar/

Reproducer

No response

System Information

"primereact": "^10.9.7",
"react": "^18.2.0",

Steps to reproduce the behavior

  1. Navigate through the page using the Tab key.
  2. Move focus onto the Calendar.
  3. Observe that as soon as the Calendar receives focus, the date picker popup is expanded automatically.

Expected behavior

The Calendar should remain closed when its trigger receives focus.
The user should explicitly open the Calendar by pressing Enter or Space
Focus and activation should remain separate interactions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue or PR need investigating and labeling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions