-
Notifications
You must be signed in to change notification settings - Fork 2
Nested dialogs closeEvent not working as expected #80
Comments
Thank you for reporting but I cannot reproduce the issue with the latest dialog release. I'm using the code below
Also the second dialog is closed if it's not added into the first dialog (the line Another thing to note is: it looks like you are describing the client side behavior only which means this is the web component behavior, not the server component. It might be that this behavior is fixed in the final version. I'm closing the ticket since I cannot reproduce it based on the description. If you have a code which shows how to reproduce it please reopen and add this code. |
Hi Denis, Managed to figure out what was going on with this. Taking your example, I added at the bottom this couple lines to listen for the close event:
Thea
Another issue that can easily be reproduced, would be adding these couple lines of code at the end of your example:
When clicking the button "Close Dialog", the message is not printed. And I'd say that this is the most critical part of the issue. That you cannot update the contents of the main dialog after the sub-dialog is closed by the user action pressing a button. |
Alright, now I see what's the problem. It's |
This ticket is strongly connected with #68. There will be a test for the scenario from this ticket. As a final note I have to say that the name for the Please note that if you use the |
Hi,
When I create a dialog in a dialog the event propagation of close event is not working as intended.
Here are the behaviours observed when the second (nested) dialog is opened on top:
a) When clicking outside the dialog to dismiss it, the server side events registered in Dialog#addDialogCloseActionListener() are executed as expected but the dialog is not closed. You can keep clicking outside and the dialog will not disappear and the events will be executed at each click.
b) When pressing ESC key to close the dialog the events, we have the same behaviour as a).
c) When adding a button to the second dialog and adding a clickListener to the button that calls the Dialog#close() method, then the events registered on Dialog#addDialogCloseActionListener() are not executed.
I'll try to provide a minimum code to test the functionality. Currently tested with RC5
Thx,
Alex
The text was updated successfully, but these errors were encountered: