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

Dialog - draggable #7697

Open
Nandovga opened this issue Feb 12, 2025 · 2 comments
Open

Dialog - draggable #7697

Nandovga opened this issue Feb 12, 2025 · 2 comments
Labels
Status: Needs Reproducer Issue needs a runnable reproducer

Comments

@Nandovga
Copy link

Nandovga commented Feb 12, 2025

Describe the bug

I'm using a component inside an iframe in my application, but I would like all Dialog resources to work using appendTo as an example Draggable.

<Dialog draggable
              appendTo={window.parent.document.body}
              style={{ width: "200px" }}
              visible={state}
              onHide={() => setState(false)}>
        <p>Test</p>
    </Dialog>

Primereact

DomHandler.addClass(document.body, 'p-unselectable-text');      

This way it renders component in the main body but the Drag Execution didn't work, it must be because the DOMHandle is losing the reference of which DOM it should work with but in my opinion it should be the DOM of the body where the modal was rendered.

Reproducer

No response

System Information

primereact: 10.9.2,
react: 19.0.0

Steps to reproduce the behavior

No response

Expected behavior

No response

@Nandovga Nandovga added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 12, 2025
@Nandovga Nandovga changed the title Dialgo - draggable Dialog - draggable Feb 12, 2025
@Nandovga
Copy link
Author

Image

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 13, 2025
Copy link

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Reproducer Issue needs a runnable reproducer
Projects
None yet
Development

No branches or pull requests

2 participants