From 8caaae8b4fb72dc2d1dff6293f0b8c3deb39987d Mon Sep 17 00:00:00 2001 From: hackerbirds <120066692+hackerbirds@users.noreply.github.com> Date: Thu, 15 Jun 2023 22:52:56 +0200 Subject: [PATCH] Make `onEscape` perform the back button behaviour --- ts/components/Modal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/components/Modal.tsx b/ts/components/Modal.tsx index 367c43256f1f..4e0250e917bb 100644 --- a/ts/components/Modal.tsx +++ b/ts/components/Modal.tsx @@ -108,6 +108,7 @@ export function Modal({ moduleClassName={moduleClassName} noMouseClose={noMouseClose} onClose={close} + onEscape={onBackButtonClick} overlayStyles={overlayStyles} theme={theme} useFocusTrap={useFocusTrap}