fix: challenge modal: cancel instead of dismiss when pressing escape
This commit is contained in:
@@ -244,7 +244,7 @@ function ChallengeModalView({ ctrl }: { ctrl: ChallengeModalCtrl }) {
|
||||
initialFocusRef={initialFocusRef}
|
||||
onDismiss={() => {
|
||||
if (ctrl.challenge.cancelable) {
|
||||
ctrl.dismiss();
|
||||
ctrl.cancel();
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user