-
-
Notifications
You must be signed in to change notification settings - Fork 309
Open
Description
I found an issue in the replaceElemet function
if you run this function, the click function will be executed according to the accumulation of how many times we click inside the same element
this.replaceElement = function (el, element) {
var nodeItem = el
if (typeof nodeItem === 'string') {
nodeItem = self.element.querySelector('[data-eid="' + el + '"]')
}
nodeItem.innerHTML = __buildItemCard(element)
// add function
nodeItem.clickfn = element.click
nodeItem.contextfn = element.context
nodeItem.dragfn = element.drag
nodeItem.dragendfn = element.dragend
nodeItem.dropfn = element.drop
__appendCustomProperties(nodeItem, element)
__onclickHandler(nodeItem) // <== this line makes the click event appear based on how many times you replace the same element
__onContextHandler(nodeItem)
return self
}
when I disable the line above the click function runs normally disable this line
Metadata
Metadata
Assignees
Labels
No labels