Skip to content

Commit

Permalink
fix: ensure nested drag-and-drop works in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 22, 2025
1 parent 4ff8f4f commit f077a37
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/components/Puck/components/Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ const useBubbleIframeEvents = (ref: RefObject<HTMLIFrameElement | null>) => {
extends PointerEvent
implements BubbledPointerEvent
{
originalTarget: EventTarget | null;
_originalTarget: EventTarget | null = null;

set originalTarget(target: EventTarget | null) {
this._originalTarget = target;
}

get originalTarget() {
return this._originalTarget;
}

constructor(
type: string,
Expand Down

0 comments on commit f077a37

Please sign in to comment.