Search code examples
fuelux

FuelUX has no data parameter for the changed event?


Is it by design that the changed event does not pass a data parameter into the function?

$('#MyWizard').on('changed', function(e, data) {
                console.log(data);
            });

The above shows the data as being undefined.

Update

I suppose I can get around the issue by use this:

$('#MyWizard').on('changed', function(e, data) { var item = $('#MyWizard').wizard('selectedItem'); });


Solution

  • As I stated in my update I used this:

    $('#MyWizard').on('changed', function(e, data) { var item = $('#MyWizard').wizard('selectedItem'); });