Fixed esc handler behavior on preview and advanced theme modals (#20014)
ref DES-26, DES-57
This commit is contained in:
parent
b8ad03b0f3
commit
f088bca883
@ -265,6 +265,7 @@ export const PreviewModalContent: React.FC<PreviewModalProps> = ({
|
|||||||
afterClose={afterClose}
|
afterClose={afterClose}
|
||||||
animate={false}
|
animate={false}
|
||||||
backDropClick={backDropClick}
|
backDropClick={backDropClick}
|
||||||
|
dirty={dirty}
|
||||||
footer={false}
|
footer={false}
|
||||||
height={height}
|
height={height}
|
||||||
padding={false}
|
padding={false}
|
||||||
|
@ -468,6 +468,10 @@ const ChangeThemeModal: React.FC<ChangeThemeModalProps> = ({source, themeRef}) =
|
|||||||
testId='theme-modal'
|
testId='theme-modal'
|
||||||
title=''
|
title=''
|
||||||
scrolling
|
scrolling
|
||||||
|
onCancel={() => {
|
||||||
|
modal.remove();
|
||||||
|
updateRoute('');
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div className='flex h-full justify-between'>
|
<div className='flex h-full justify-between'>
|
||||||
<div className='grow'>
|
<div className='grow'>
|
||||||
|
Loading…
Reference in New Issue
Block a user