Skip to content

Commit dc6d09f

Browse files
committed
Stop propagation of event when clicking on entity actions
1 parent 6e9a67f commit dc6d09f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/firecms_core/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ export const EntityCollectionRowActions = function EntityCollectionRowActions({
6969
"h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10",
7070
frozen ? "sticky left-0" : ""
7171
)}
72+
onClick={useCallback((event: any) => {
73+
event.stopPropagation();
74+
}, [])}
7275
style={{
7376
width,
7477
position: frozen ? "sticky" : "initial",

0 commit comments

Comments
 (0)