primeng version 6.1.0
angular version 6.1.1
When use the ngIf and visible at the same time and use the same variable, the event onHide not triggered.
https://stackblitz.com/edit/github-njvgs6?file=src/app/app.component.html
I'm assuming in your actual code example the visible var and *ngIf var are not the same. In this scenario can you not just remove the *ngIf and change visible to [(visible)]="var1 && var2"? I'm not sure onHide should be called with *ngIf because it isn't hidden it's destroyed.
Why do you want it? Already visible property do that.
I want to remove the dialog from the dom tree. That works in the previous version (<= 6.0.0)
Maybe you can use visibleChange property like that
I saw the attribute in the source code, but it didn't appeared in the document, I don't know if it'll be removed in the future.
Fixed via #6286
@cagataycivici
This issue comes back.
Yes, this issue is happening in 6.1.4 version of primeng
Edit:
This was solved in 6.1.5 version.
Thanks!!
This issue was also mentioned in #6925 and seems still present in PrimeNG 8...
Most helpful comment
@cagataycivici
This issue comes back.