Skip to content

Commit

Permalink
refactor: ensure DropZones can still capture pointer event
Browse files Browse the repository at this point in the history
Previous commit addressed a bug related to the data- attributes being overwritten, but failed to address the underlying CSS styles that enable the DropZone to capture the necessary pointer events to trigger the NestedDroppablePlugin.
  • Loading branch information
chrisvxd committed Jan 21, 2025
1 parent 00f3e0f commit d5324f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/components/DraggableComponent/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-webkit-user-select: none;
}

[data-puck-dnd] {
[data-puck-dropzone] {
pointer-events: auto !important; /* Ensure DropZones still capture pointer events inside data-puck-components so elementsFromPoint triggers */
}

Expand Down

0 comments on commit d5324f1

Please sign in to comment.