closedCallback runs when the hide animation ends, or after its CSS duration
if no transition event arrives. If the modal is closed
some other way before then, such as by a page change (Page closes any open
modal) or by a non-stacked modal replacing it, its dialog is removed, the
animation never ends and closedCallback does not run. It is not run in
that case because whatever closed the modal may already have moved on: a
callback that changes the route, for example, would close the new modal too.
Animates the current modal out, then closes it.
closedCallbackruns when the hide animation ends, or after its CSS duration if no transition event arrives. If the modal is closed some other way before then, such as by a page change (Page closes any open modal) or by a non-stacked modal replacing it, its dialog is removed, the animation never ends andclosedCallbackdoes not run. It is not run in that case because whatever closed the modal may already have moved on: a callback that changes the route, for example, would close the new modal too.