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

Example doesn't clear first pages inputs #5

Open
MichaelJCole opened this issue Nov 6, 2015 · 4 comments
Open

Example doesn't clear first pages inputs #5

MichaelJCole opened this issue Nov 6, 2015 · 4 comments

Comments

@MichaelJCole
Copy link

I thought this had to do with updating to 1.2, but it's just how it is. Any idea as to why? How could I have these reset?

  1. Start app
  2. Fill out order form (5 fields all with 'asdf')
  3. Click next
  4. Select ccard and check box
  5. Confirm
  6. Another order
  7. Back to order form. 'asdf' is in all 5 fields still. ?!
@MichaelJCole MichaelJCole changed the title Upgrading to meteor 1.2.1 and example doesn't clear first pages inputs Example doesn't clear first pages inputs Nov 6, 2015
@MichaelJCole
Copy link
Author

Hey, this is the persist option defaulting to true.

@MichaelJCole
Copy link
Author

Hey actually it would be helpful to add some sample code to access/clear these. It was unexpected.

@lpanger
Copy link

lpanger commented Dec 9, 2015

I added persist=false to the basic.html and it still persisted the data as per your scenario above.

{{> wizard id="basic" route="basic" steps=steps stepsTemplate="steps_semanticUI" buttonClasses="ui button" persist="false"}}

@ababra
Copy link

ababra commented Oct 4, 2016

FYI I had to add the following to get the wizard to stop persisting data:

{{> wizard id="booking" route="booking" steps=steps stepsTemplate="steps" buttonClasses="button" persist=false clearOnDestroy=true}}

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