Fixed esc handler behavior on preview and advanced theme modals (#20014)

ref DES-26, DES-57
This commit is contained in:
Sodbileg Gansukh 2024-04-12 13:22:44 +08:00 committed by GitHub
parent b8ad03b0f3
commit f088bca883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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}

View File

@ -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'>