rstaib / jquery-steps

A powerful jQuery wizard plugin that supports accessibility and HTML5.
http://www.jquery-steps.com
MIT License
1.69k stars 782 forks source link

Meteor template events not firing when inside a step #119

Open doubletaketech opened 9 years ago

doubletaketech commented 9 years ago

I'm using the jquery-steps Meteor package.

I have a button inside of a step's content. When button is clicked, the Meteor event doesn't fire. It fires fine outside of jquery-steps.

I'm initializing steps inside of the template.rendered function

Template.stepsLayout.rendered = function(){

    Meteor.setTimeout(function(){
        $(".steps").steps({
            headerTag: "h3",
            bodyTag: "div",
            transitionEffect: "slideLeft",
            autoFocus: true
        });

    });

}

and the events are setup inside of template that loads inside the step.

Template.survey.events = {
 'click #update' : function (event) {
//does not fire
}
}

Do you have a working example of how to use jquery-steps meteor package? Seems like a timing issue or conflict with listeners or something.

Where should you call the steps function in a meteor app?

Any ideas what might be causing this issue?

Thanks, Don

bernardocasanova commented 6 years ago

i have the same problem with React Events