Skip to content

Commit 0e4e424

Browse files
fix: address PR review — stopPropagation on avatar onKeyDown, replace deprecated bodyStyle
- Add e.stopPropagation() to shared-user avatar onKeyDown handler to prevent card navigation on Enter - Replace deprecated bodyStyle prop with styles={{ body: {...} }} for Ant Design v5 compatibility
1 parent fdff7fc commit 0e4e424

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/src/base/components/project-list/ProjectListCard.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ function ProjectListCard({
145145
if (ShareProjectModal) setIsShareModalOpen(true);
146146
}}
147147
onKeyDown={(e) => {
148+
e.stopPropagation();
148149
if (e.key === "Enter" && ShareProjectModal)
149150
setIsShareModalOpen(true);
150151
}}

frontend/src/ide/editor/no-code-configuration/configure-source-destination.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function ConfigureSourceDestination({
250250
<Card
251251
className="configure-tables configure-section-card"
252252
style={{ backgroundColor: token.colorFillTertiary }}
253-
bodyStyle={{ padding: "12px 16px" }}
253+
styles={{ body: { padding: "12px 16px" } }}
254254
>
255255
<h4 style={{ marginTop: 0 }}>
256256
<Space>

0 commit comments

Comments
 (0)