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

Iframe selection collision #880

Open
FedericoBonel opened this issue Feb 5, 2025 · 0 comments
Open

Iframe selection collision #880

FedericoBonel opened this issue Feb 5, 2025 · 0 comments

Comments

@FedericoBonel
Copy link
Collaborator

Description

The selection of the preview iframe is causing issues because it is too vague. Currently, it uses document.querySelector("iframe"), which can lead to collisions and unexpected behavior if the user has other iframes on the same page where the editor is rendered.

Steps to Reproduce

  1. Add an iframe with an external domain as the src on the same page where the editor is being rendered.
  2. Navigate to the editor in the browser and open the console.
  3. Attempt to drag and drop a component.

What Happens

The component cannot be dragged and dropped, and multiple error messages appear when moving the mouse across the screen.

Expected Behavior

The editor should not collide with other iframes and should allow users to drag and drop components or use it seamlessly, regardless of other content rendered on the same page.

Screenshot:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant