Skip to content

Commit 658ea4b

Browse files
committed
🐛 Fix block selection action buttons ignored
1 parent f144d74 commit 658ea4b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/builder/src/features/graph/components/ElementsSelectionMenu.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,16 @@ export const ElementsSelectionMenu = ({
157157

158158
if (focusedElementIds.length === 0 || isReadOnly) return null;
159159
return (
160-
<div className="flex items-stretch gap-1">
160+
<div
161+
className="flex items-stretch gap-1"
162+
// Prevent Graph event listeners to cancel action clicks
163+
onPointerDownCapture={(e) => {
164+
e.stopPropagation();
165+
}}
166+
onPointerUpCapture={(e) => {
167+
e.stopPropagation();
168+
}}
169+
>
161170
<span className="text-sm text-orange-10 font-medium px-2 inline-flex items-center select-none">
162171
{focusedElementIds.length} selected
163172
</span>

0 commit comments

Comments
 (0)