Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove event propagation between iframe and resizable component #3786

Closed
wants to merge 3 commits into from
Closed

Conversation

wontory
Copy link

@wontory wontory commented May 21, 2024

Hello. I've found that the preview's Resizable component in the block page isn't functioning correctly due to event propagation between the Resizable component and the iframe.

In this PR, I've fixed the issue by adding the pointer-events-none class to the iframe when isDragging of the ResizableHandle component is true, thereby preventing event propagation.

Before

CleanShot.2024-05-21.at.11.09.06.mp4

After

CleanShot.2024-05-21.at.11.11.06.mp4

Copy link

vercel bot commented May 21, 2024

@wontory is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@wontory
Copy link
Author

wontory commented May 21, 2024

It seems to be a cross-browsing issue.
I'm using MacOS, Arc Browser(Chromium).

Windows Chrome: works
Windows Edge: not works
MacOS Chrome: works
MacOS Arc: not works

Related

bvaughn/react-resizable-panels#64
bvaughn/react-resizable-panels#66

@wontory wontory closed this by deleting the head repository Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant