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
1- Render the ConfirmDialog with an onHide prop provided as a callback.
2- Observe that the onHide callback is executed as soon as the component renders.
Expected behavior
The onHide callback should only be triggered when the dialog is explicitly hidden, such as when the user clicks accept or reject button
The text was updated successfully, but these errors were encountered:
itismohammadreza
changed the title
ConfirmDialog: onHide Prop is Triggered Immediately
ConfirmDialog: onHide prop is triggered immediately
Dec 11, 2024
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
Dec 11, 2024
Describe the bug
The onHide prop in the ConfirmDialog is being invoked immediately upon rendering, rather than being called only when the dialog is supposed to hide
Reproducer
https://stackblitz.com/edit/epobfmq8?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
1- Render the ConfirmDialog with an onHide prop provided as a callback.
2- Observe that the onHide callback is executed as soon as the component renders.
Expected behavior
The onHide callback should only be triggered when the dialog is explicitly hidden, such as when the user clicks accept or reject button
The text was updated successfully, but these errors were encountered: