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

Fix #6718: FocusTrap better handling of autoFocus property #6721

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

melloware
Copy link
Member

Fix #6718: FocusTrap better handling of autoFocus property

Currently in PrimeVue it uses [autofocus] selector which is the browser property. React however will not uses that property for its autoFocus and handles it itself. So this adds a data property to all buttons whether they were data-pc-autofocus so we can make the selector check both...either browser [autofocus] or the custom data attribute [data-pc-autofocus="true"]

Copy link

vercel bot commented Jun 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 0:40am
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview Jun 3, 2024 0:40am

@melloware melloware added the Core Team Issue or pull request has been *opened* by a member of Core Team label Jun 3, 2024
@melloware melloware requested review from gucal and nitrogenous June 3, 2024 12:39
@melloware melloware merged commit f5005c0 into primefaces:master Jul 2, 2024
6 checks passed
@melloware melloware deleted the PR6718 branch July 2, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialog: autofocus button does not get focus
1 participant