You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: