fix: initializer select close (#4865)

This commit is contained in:
jack zhang 2024-07-11 18:22:36 +08:00 committed by GitHub
parent b161599749
commit bb9ebe9852
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export const SchemaInitializerSelect: FC<SchemaInitializerSelectItemProps> = (pr
);
return (
<SchemaInitializerItem {...others}>
<SchemaInitializerItem closeInitializerMenuWhenClick={false} {...others}>
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
{title}
<Select

View File

@ -31,6 +31,7 @@ export const SchemaInitializerOpenModeSchemaItems: React.FC<Options> = (options)
<>
{openMode ? (
<SchemaInitializerSelect
closeInitializerMenuWhenClick={false}
title={t('Open mode')}
options={[
{ label: t('Drawer'), value: 'drawer' },
@ -55,7 +56,7 @@ export const SchemaInitializerOpenModeSchemaItems: React.FC<Options> = (options)
/>
) : null}
{openSize && ['modal', 'drawer'].includes(openModeValue) ? (
<SchemaInitializerItem>
<SchemaInitializerItem closeInitializerMenuWhenClick={false}>
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
{t('Popup size')}
<Select