focus is not set to yes-button in modal dialog #1744
-
Since PF 13.0.6, setting the focus with the 'focus' attribute in the 'dialog' no longer works. The element briefly gains focus and then immediately loses it again. This still worked in PF 13.0.5. Is this known? Should I open an issue for this? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 31 replies
-
Since PF 13.0.6 active element jumps back to the link I have clicked. |
Beta Was this translation helpful? Give feedback.
-
I've had this problem before: https://github.com/orgs/primefaces/discussions/204 If I increase the timeout from 100 to 150 milliseconds, the focus remains on the dialog or is set here again. I tried to build a tester to display the problem. But I didn't succeed. The dialogue works as expected. Something is taking my focus away, but what? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, the next attempt also works. :-( |
Beta Was this translation helpful? Give feedback.
-
I'll look at it again tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The patch works for the commandLink, but not for my commandButton. I have to put together an example of this tomorrow. In my current tester both the link and the button work. |
Beta Was this translation helpful? Give feedback.
-
Hi, we are having issues with focus when opening dialog since PF 13.0.6. In PF 13.0.5 it worked smoothly. I created reproducer - please see attached .zip project. It is a bit more complex - we use ajaxStatus and we block user interaction until ajax is completed. Should I create another issue? Thank you |
Beta Was this translation helpful? Give feedback.
@melloware Thank you for the fix, works great in 13.0.10.