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

Update overlayPanel and dialog. Emit onHide only if panel/dialog is visible. #6471

Merged
merged 2 commits into from
Sep 18, 2018

Conversation

Hunroll
Copy link
Contributor

@Hunroll Hunroll commented Sep 7, 2018

###Defect Fixes
We have a panel on layout, subscription to onHide. Once we navigate to another form, onDestroy is triggered and then onHide is emmited, but it was not supposed to as dialog was not even shown.

###Feature Requests
N/A

We have a panel on layout, subscription to onHide. Once we navigate to another form, onDestroy is triggered and then onHide is emmited, but it was not supposed to as dialog was not even shown.
@Hunroll
Copy link
Contributor Author

Hunroll commented Sep 7, 2018

Was reported in issue #6442

Dialog should not emit onHide if it wasn't shown
@Hunroll Hunroll changed the title Update overlayPanel. Emit onHide only if panel is visible. Update overlayPanel and dialog. Emit onHide only if panel/dialog is visible. Sep 7, 2018
@cagataycivici cagataycivici merged commit 9a0fa27 into primefaces:master Sep 18, 2018
@cagataycivici
Copy link
Member

Thank you.

@Hunroll Hunroll deleted the patch-1 branch September 18, 2018 14:57
@huineng
Copy link

huineng commented Sep 20, 2018

the variable isvisible is already set to false before onOverlayHide is being called, so this never get's executed

@Hunroll
Copy link
Contributor Author

Hunroll commented Sep 20, 2018

Thank you! Created new PR to fix both problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants