chore: use destroyOnHidden instead of deprecated destroyOnClose (#9102)

* chore: use destroyOnHidden instead of deprecated destroyOnClose

* Update src/renderer/src/components/MinApp/MinappPopupContainer.tsx

* Update src/renderer/src/pages/settings/SelectionAssistantSettings/components/SelectionFilterListModal.tsx

---------

Co-authored-by: Phantom <59059173+EurFelux@users.noreply.github.com>
This commit is contained in:
one 2025-08-13 10:08:36 +08:00 committed by GitHub
parent 7c2a9d141e
commit df587fc61f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 8 additions and 9 deletions

View File

@ -133,7 +133,7 @@ const HtmlArtifactsPopup: React.FC<HtmlArtifactsPopupProps> = ({ open, title, ht
open={open}
afterClose={onClose}
centered={!isFullscreen}
destroyOnClose
destroyOnHidden
mask={!isFullscreen}
maskClosable={false}
width={isFullscreen ? '100vw' : '90vw'}

View File

@ -499,7 +499,6 @@ const MinappPopupContainer: React.FC = () => {
placement="bottom"
onClose={handlePopupMinimize}
open={isPopupShow}
destroyOnClose={false}
mask={false}
rootClassName="minapp-drawer"
maskClassName="minapp-mask"

View File

@ -349,7 +349,7 @@ const PopupContainer: React.FC<Props> = ({ source, title, resolve }) => {
onOk={onOk}
onCancel={onCancel}
afterClose={onClose}
destroyOnClose
destroyOnHidden
centered
width={500}
okText={t('common.save')}

View File

@ -403,7 +403,7 @@ const ChatNavigation: FC<ChatNavigationProps> = ({ containerId }) => {
onClose={handleDrawerClose}
open={showChatHistory}
width={680}
destroyOnClose
destroyOnHidden
styles={{
header: { border: 'none' },
body: {

View File

@ -21,7 +21,7 @@ const KnowledgeBaseFormModal: React.FC<KnowledgeBaseFormModalProps> = ({ panels,
return (
<StyledModal
destroyOnClose
destroyOnHidden
maskClosable={false}
centered
transitionName="animation-move-down"

View File

@ -274,7 +274,7 @@ const AddMcpServerModal: FC<AddMcpServerModalProps> = ({
onClose()
}}
confirmLoading={loading}
destroyOnClose
destroyOnHidden
centered
transitionName="animation-move-down"
width={600}>

View File

@ -39,7 +39,7 @@ const MacProcessTrustHintModal: FC<MacProcessTrustHintModalProps> = ({ open, onC
</div>
}
centered
destroyOnClose>
destroyOnHidden>
<ContentContainer>
<Paragraph>
<Text>

View File

@ -149,7 +149,7 @@ const SelectionActionSearchModal: FC<SelectionActionSearchModalProps> = ({
open={isModalOpen}
onOk={handleOk}
onCancel={handleCancel}
destroyOnClose
destroyOnHidden
centered>
<Form
form={form}

View File

@ -46,7 +46,7 @@ const SelectionFilterListModal: FC<SelectionFilterListModalProps> = ({ open, onC
onCancel={onClose}
maskClosable={false}
keyboard={true}
destroyOnClose={true}
destroyOnHidden
footer={[
<Button key="modal-cancel" onClick={onClose}>
{t('common.cancel')}