mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:06:22 +00:00
fix: initializer select close (#4865)
This commit is contained in:
parent
b161599749
commit
bb9ebe9852
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user