Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog: onHide Called Twice #6562

Closed
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@alefduarte
Copy link
Contributor

Describe the bug

Dialog onHide Called Twice:

The onHide event for the dialog component is being triggered twice. This issue can be observed in
Dialog Issue

Reproducer

https://stackblitz.com/edit/4re1hf?file=src%2FApp.jsx

PrimeReact version

10.6.5

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Chrome

Steps to reproduce the behavior

Dialog Issue

Expected behavior

No response

@alefduarte alefduarte added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 3, 2024
@melloware 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 May 3, 2024
@melloware
Copy link
Member

@Rekl0w related to this issue and fix: #6448

melloware added a commit that referenced this issue May 3, 2024
* Fix #6562: onHide called twice fix

* Update Dialog.js

---------

Co-authored-by: Melloware <mellowaredev@gmail.com>
@melloware melloware added this to the 10.7.0 milestone May 3, 2024
@VentuzVictorPerez
Copy link

Was this fix included in 10.6.6? Or will it be included in 10.7.0?

@melloware
Copy link
Member

melloware commented May 30, 2024

@VentuzVictorPerez see this comment it is by design: #880 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment