Dialog/OverlayPanel onHide triggered when destroying an hidden dialog #6442
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://angular-3fwuct.stackblitz.io
Current behavior
The onHide event in p-dialog is always triggered when the p-dialog component is destroyed, whether the dialog is opened or not.
Expected behavior
The onHide event should trigger only when an open dialog is closed or destroyed. This was working normally in primeng v.5
Minimal reproduction of the problem with instructions
https://angular-3fwuct.stackblitz.io
Please tell us about your environment:
Windows 10 x64
Angular version: 6.1.4
PrimeNG version: 6.1.3
**Browser:**all
The text was updated successfully, but these errors were encountered: