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: On drag #5325

Closed
sun-pandey opened this issue Feb 23, 2024 · 1 comment
Closed

Dialog: On drag #5325

sun-pandey opened this issue Feb 23, 2024 · 1 comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@sun-pandey
Copy link

Describe the bug

initDrag(e) {
e.target.closest("div").getAttribute("data-pc-section") !== "icons" && this.draggable && (this.dragging = !0,
this.lastPageX = e.pageX,
this.lastPageY = e.pageY,
this.container.style.margin = "0",
document.body.setAttribute("data-p-unselectable-text"),
!this.isUnstyled && r.addClass(document.body, "p-unselectable-text"))
}

Error log in Browser Console

throwing error at the following statement in initDrag(): document.body.setAttribute("data-p-unselectable-text"),
Error Message: Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only 1 present. at Proxy.initDrag (Dialog.cb635a9d.js:7:365)

Reproducer

https://primevue.org/dialog/

PrimeVue version

3.48.1

Vue version

3.x

Language

ES6

Build / Runtime

Nuxt

Browser(s)

All

Steps to reproduce the behavior

Error can be reproduced for any of the Dialog examples on https://primevue.org/dialog/

Expected behavior

There should be no error in the Console.

@sun-pandey sun-pandey 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 23, 2024
@tugcekucukoglu
Copy link
Member

Fixed for the next version #5240

Thank you.

@tugcekucukoglu tugcekucukoglu added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted 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 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

No branches or pull requests

2 participants