primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Dialog: autofocus button does not get focus

Open leevva opened this issue 1 year ago • 2 comments

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

leevva avatar Jun 03 '24 07:06 leevva

Might be related to this issue and fix: https://github.com/primefaces/primereact/issues/6095

melloware avatar Jun 03 '24 11:06 melloware

OK PR submitted.

melloware avatar Jun 03 '24 12:06 melloware