Make onEscape perform the back button behaviour

This commit is contained in:
hackerbirds 2023-06-15 22:52:56 +02:00
parent 4ff36f46c4
commit 8caaae8b4f

View file

@ -108,6 +108,7 @@ export function Modal({
moduleClassName={moduleClassName}
noMouseClose={noMouseClose}
onClose={close}
onEscape={onBackButtonClick}
overlayStyles={overlayStyles}
theme={theme}
useFocusTrap={useFocusTrap}