You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MikeMatusz opened this issue
Jul 29, 2019
· 1 comment
· Fixed by #16691
Assignees
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Provide a method/property on DialogRef to indicate the dialog is in a closing state (i.e. dialogRef.close() has been called). For example: dialogRef.isClosing() or dialogRef.state
Use Case
There is a small but non-negligible span of time between calling dialogRef.close() and the dialog actually being removed. It would be nice to be able to prevent certain user actions during this time, in a generic fashion. Currently, you either have to take another action every time you call close() (which doesn't account for calls coming from within the component, could be missed/isn't generic) or check the _state property of MatDialogContainer (which is an internal property of an internal class, so not something anyone should do). Having this state indicator would allow a single common component used on many dialogs to handle such a behavior.
The text was updated successfully, but these errors were encountered:
MikeMatusz
added
the
feature
This issue represents a new feature or feature request rather than a bug or bug fix
label
Jul 29, 2019
andrewseguin
added
the
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
label
Jul 31, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Feature Description
Provide a method/property on DialogRef to indicate the dialog is in a closing state (i.e. dialogRef.close() has been called). For example: dialogRef.isClosing() or dialogRef.state
Use Case
There is a small but non-negligible span of time between calling dialogRef.close() and the dialog actually being removed. It would be nice to be able to prevent certain user actions during this time, in a generic fashion. Currently, you either have to take another action every time you call close() (which doesn't account for calls coming from within the component, could be missed/isn't generic) or check the _state property of MatDialogContainer (which is an internal property of an internal class, so not something anyone should do). Having this state indicator would allow a single common component used on many dialogs to handle such a behavior.
The text was updated successfully, but these errors were encountered: