Skip to content

Calendar: reFocusInputField on single selection #8302

@sergiomendi

Description

@sergiomendi

Describe the bug

Using Calendar as single date selector, when I select a date and the panel closes, there is an auto focus at the input field that breaks usability since I can not open the panel again without pressing the right button of the component.

Reproducer

https://stackblitz.com/run?file=src%2FApp.jsx

System Information

Primereact: 10.9.7

Steps to reproduce the behavior

  1. Open calendar panel
  2. Select a date
  3. Open calendar panel again pressing the input field

Expected behavior

I have noticed that the single Calendar has a function when there is a selection that re focus input field. This behavior should be supressed.

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a defect related to a specific component.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions