You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Dialog has the prop showHeader to false, the focusOnShow is ignored when is set to false, so it will always be focused. This is specially annoying for the case that the first input is a Calendar, because it is focused even before showing the Dialog, so the Calendar's overlay is placed behind the Dialog on the top-left corner. It can be seen on the reproducer
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jul 3, 2024
Describe the bug
When a
Dialog
has the propshowHeader
to false, thefocusOnShow
is ignored when is set to false, so it will always be focused. This is specially annoying for the case that the first input is aCalendar
, because it is focused even before showing the Dialog, so the Calendar's overlay is placed behind the Dialog on the top-left corner. It can be seen on the reproducerReproducer
https://stackblitz.com/edit/pys2ri?file=src%2FApp.jsx
PrimeReact version
latest
React version
18.x
Language
ES6
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
It should not auto-focus the first input when
showOnFocus={false}
.The text was updated successfully, but these errors were encountered: