Skip to content

Commit 9065a34

Browse files
authored
task: updated deactivated fields spacing and prevent opening of field update modal on menu dropdown click out (#1869)
1 parent dc50691 commit 9065a34

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/apps/schema/src/appRevamp/components/Field/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,11 @@ export const Field = ({
321321
</IconButton>
322322
<Menu
323323
open={isMenuOpen}
324-
onClose={() => setAnchorEl(null)}
324+
onClose={(e: React.MouseEvent<HTMLButtonElement>) => {
325+
e.stopPropagation();
326+
327+
setAnchorEl(null);
328+
}}
325329
anchorEl={anchorEl}
326330
anchorOrigin={{
327331
vertical: "bottom",

src/apps/schema/src/appRevamp/components/FieldList.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,14 @@ export const FieldList = ({ onNewFieldModalClick }: Props) => {
350350

351351
{/* INACTIVE FIELDS ARE PRESENT */}
352352
{Boolean(deactivatedFields?.length) && !search && (
353-
<Box mb={2} mt={0.5}>
354-
<Box pl={3} pb={1.5}>
353+
<Box
354+
mb={2}
355+
mt={0.5}
356+
display="flex"
357+
flexDirection="column"
358+
gap={1.5}
359+
>
360+
<Box pl={3}>
355361
<Typography variant="h6" mb={1}>
356362
Deactivated Fields
357363
</Typography>

0 commit comments

Comments
 (0)