Skip to content

Add current named step on step change callback #94

@ayresflesch

Description

@ayresflesch

I was wondering if there's a way to add the active named step to the stats object used on step change callback.

this.setState({
activeStep: next,
classes,
}, () => {
// Step change callback
this.onStepChange({
previousStep: active + 1,
activeStep: next + 1,
});
});

Something like this, I guess:

// Step change callback
this.onStepChange({
    previousStep: active + 1,
    activeStep: next + 1,
    activeNamedStep: // get named step
});

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