Skip to content

Commit

Permalink
Merge pull request #28568 from Vincentdevreede/next
Browse files Browse the repository at this point in the history
Fix: Prevent iframe from capturing mouse events in composed Storybooks
  • Loading branch information
ndelangen authored Jul 16, 2024
2 parents 7c3bac8 + d44e0e7 commit 4f9108c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/core/src/manager/components/layout/useDragging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function useDragging({
useEffect(() => {
const panelResizer = panelResizerRef.current;
const sidebarResizer = sidebarResizerRef.current;
const previewIframe = document.querySelector('#storybook-preview-iframe') as HTMLIFrameElement;
const previewIframe = document.querySelector('#storybook-preview-wrapper') as HTMLIFrameElement;
let draggedElement: typeof panelResizer | typeof sidebarResizer | null = null;

const onDragStart = (e: MouseEvent) => {
Expand Down

0 comments on commit 4f9108c

Please sign in to comment.