Closed rsktash closed 1 month ago
Do you mean that the callback is registered in the child component? If so, then this is by design. You should disable the callback (set callback.enabled = false
) when the confirmation is not required.
Usually the dialog should be shown from the callback.
Yes, It's registered in a child component
I've tested with subscribe { backCallback.isEnabled = doWeNeedConfirmation }
Unfortunately it didn't change the behavior
If you set enabled = false, then the animation should work. It would be nice to have a reproducer of the issue.
I've tested with minimal reproducer and it's working The issue was originating from a full screen dialog used for EditComponent
I'm using navigation suite and panels I tried to prevent user clicks on navigation buttons while editing an item Is there a way to temporarily switch panel mode to single?
OK. I've created base component and extension function in order to control panel mode
You should be able to just not navigation if the edit mode is active. Just add a condition somewhere in your components.
I've a master detail UI Master component shows list of items Details component shows selected item for editing In the Details component before navigating back it checks if the editing data has any change If data has changed a dialog will be shown in order to get confirmation from user about data loss on navigating back
If I comment this code animation works