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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
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