Skip to content

Events not fire on templates elements after load - Please put it in the read.me #42

@Raf-sns

Description

@Raf-sns

Events not fire on templates elements after load ...
I looked for a solution for two hours, I almost gave up the pulg-in ...

This should be reported in the read.me ...
From stackoverflow : (by Eduardo Quintana)

"Use event delegation this will add the handler for future elements.

If you use $(".button") and the element is not in the DOM already the event handler will not work because noting will be selected

$(document).on("click",".button",function(){
console.log('click');
});
"

hope to help,
Raf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions