Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog: autofocus button does not get focus #6718

Closed
leevva opened this issue Jun 3, 2024 · 2 comments · Fixed by #6721
Closed

Dialog: autofocus button does not get focus #6718

leevva opened this issue Jun 3, 2024 · 2 comments · Fixed by #6721
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@leevva
Copy link

leevva commented Jun 3, 2024

Describe the bug

If there was a button with autofocus in the dialog, then when the dialog was opened the button received focus.
Since 10.6.4 it does not. Pressing Enter just closes dialog.
Therefore, you can no longer press Enter to press the button.

Reproducer

https://stackblitz.com/edit/vitejs-vite-rehwzq

PrimeReact version

10.6.6

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@leevva leevva added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 3, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jun 3, 2024
@melloware
Copy link
Member

Might be related to this issue and fix: #6095

@melloware
Copy link
Member

OK PR submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants