Skip to content

Commit c641afd

Browse files
committed
Fix alert view cancel listener not being set when presenting
1 parent 0ea3941 commit c641afd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/js/src/manager/screen/utils/_PresentAlertOperation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ class _PresentAlertOperation extends _Task {
6464
this._isAlertPresented = false;
6565
this._alertSoftButtonClearListener = alertSoftButtonClearListener;
6666

67-
this._alertView.canceledListener = function () {
67+
this._alertView.canceledListener = () => {
6868
this.cancelAlert();
6969
};
70+
alertView.canceledListener = this._alertView.canceledListener;
7071
}
7172

7273
/**

0 commit comments

Comments
 (0)