Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current named step on step change callback #94

Open
ayresflesch opened this issue Oct 4, 2021 · 0 comments
Open

Add current named step on step change callback #94

ayresflesch opened this issue Oct 4, 2021 · 0 comments

Comments

@ayresflesch
Copy link

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
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant