Primeng: Dialog issue , onHide not triggered

Created on 9 Aug 2018  路  9Comments  路  Source: primefaces/primeng

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

defect

Most helpful comment

@cagataycivici
This issue comes back.

All 9 comments

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...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gatapia picture gatapia  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments

Helayxa picture Helayxa  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

SchneMa picture SchneMa  路  3Comments