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: Close button not focused if no other focusable elements #10115

Closed
melloware opened this issue May 11, 2023 · 0 comments · Fixed by #10116
Closed

Dialog: Close button not focused if no other focusable elements #10115

melloware opened this issue May 11, 2023 · 0 comments · Fixed by #10116
Assignees
Labels
12.0.5 🐞 defect Bug...Something isn't working
Milestone

Comments

@melloware
Copy link
Member

Describe the bug

In other Prime libraries like PrimeReact if a Dialog is opened we try and focus the first focusable element. However if there are no focusable elements the dialog Close button should get the focus so you can open a dialog and press ENTER to close it and the close button is focused.

Reproducer

pf-9941.zip

Expected behavior

Dialog close button should receive focus.

PrimeFaces edition

Community

PrimeFaces version

12.0.0

Theme

No response

JSF implementation

All

JSF version

2.3

Java version

11

Browser(s)

ALL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
12.0.5 🐞 defect Bug...Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants