primereact
primereact copied to clipboard
Dialog: autofocus button does not get focus
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
Might be related to this issue and fix: https://github.com/primefaces/primereact/issues/6095
OK PR submitted.