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 ( return (
<SchemaInitializerItem {...others}> <SchemaInitializerItem closeInitializerMenuWhenClick={false} {...others}>
<div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}> <div style={{ alignItems: 'center', display: 'flex', justifyContent: 'space-between' }}>
{title} {title}
<Select <Select

View File

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