File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -866,7 +866,15 @@ - (BOOL)accessibilityPerformEscape {
866
866
MDCDialogPresentationController *dialogPresentationController =
867
867
self.mdc_dialogPresentationController ;
868
868
if (dialogPresentationController.dismissOnBackgroundTap ) {
869
- [self .presentingViewController dismissViewControllerAnimated: YES completion: NULL ];
869
+ void (^dismissalCompletion)(void ) = ^{
870
+ if ([dialogPresentationController.dialogPresentationControllerDelegate
871
+ respondsToSelector: @selector (dialogPresentationControllerDidDismiss: )]) {
872
+ [dialogPresentationController.dialogPresentationControllerDelegate
873
+ dialogPresentationControllerDidDismiss: dialogPresentationController];
874
+ }
875
+ };
876
+ [self .presentingViewController dismissViewControllerAnimated: YES
877
+ completion: dismissalCompletion];
870
878
return YES ;
871
879
}
872
880
return NO ;
You can’t perform that action at this time.
0 commit comments