bug(dialog): afterOpened not always emitted #26295
Labels
area: material/dialog
needs: discussion
Further discussion with the team is needed before proceeding
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
14
Description
afterOpened
is not emitted when the dialog is closed too fast.Reproduction
I noticed this issue running some e2e tests but it also can be manually reproduced: basically just go to https://stackblitz.com/edit/afteropened-not-always-emitted-15 and double click on the button.
Expected Behavior
afterOpened
should always emit a value before closing the dialog like in v14.https://stackblitz.com/edit/afteropened-not-always-emitted-14
Actual Behavior
afterOpened
is not emitted when the dialog is closed too fast.https://stackblitz.com/edit/afteropened-not-always-emitted-15
Environment
The text was updated successfully, but these errors were encountered: