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

How to reset step on close popup #8

Closed
hashmab opened this issue Sep 9, 2016 · 4 comments
Closed

How to reset step on close popup #8

hashmab opened this issue Sep 9, 2016 · 4 comments

Comments

@hashmab
Copy link

hashmab commented Sep 9, 2016

Hi

How to reset step on close popup?

Thanks

@hashmab
Copy link
Author

hashmab commented Sep 9, 2016

I have resolve myself. Please use add line

$modal.on('hidden.bs.modal', function () {
reset();
updateProgress(1, total_num_steps); /// add thies line to reset to step 1.
$modal.find('.step-1').show();
})

@ngzhian
Copy link
Owner

ngzhian commented Sep 11, 2016

Thanks for your suggestion. This isn't something I would want to support for this library, as some users might want to preserve the progress of the step. However I have added a note to the README, so users who want this feature can look at this issue for your example code!

@ngzhian ngzhian closed this as completed Sep 11, 2016
@guibranco
Copy link

This can be added as an option of the plugin, disabled by default, if the user wants this behavior, then he need to pass "autoReset: true" to the constructor...

@ngzhian
Copy link
Owner

ngzhian commented Nov 16, 2017

Thanks for your suggestion @guibranco, if you would like this feature I am happy to take a PR :)

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

3 participants