Skip to content

Commit 38b3bf2

Browse files
committed
Fix <FileField> should not propagate click
1 parent 0155a34 commit 38b3bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-ui-materialui/src/field/FileField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const FileField = <
6767
const srcValue = get(file, src) || title;
6868

6969
return (
70-
<li key={index}>
70+
<li key={index} onClick={e => e.stopPropagation()}>
7171
<Link
7272
href={srcValue}
7373
title={fileTitleValue}

0 commit comments

Comments
 (0)