Survey-library: SurveyJS resetting state in React in the Quiz mode

Created on 6 Feb 2019  路  8Comments  路  Source: surveyjs/survey-library

Are you requesting a feature, reporting a bug or asking a question?

Bug.

What is the current behavior?

bug

What is the expected behavior?

To not reset form

How would you reproduce the current behavior (if this is a bug)?

???

I am using last versions of the packages, but I am still not sure why this error occurs.

Specify your

  • browser: Safari, Chrome and Firefox
  • surveyjs platform react
  • surveyjs version: 1.0.67
bug fixed

All 8 comments

Hello! Thank you for the reporting. I don't manage to reproduce it. Could you please provide an example or json to reproduce the problem.

@dmitrykurmanov Will come back at this.

this.model = new Survey.Model(intake());
// ...
this.model.startTimer();
// ...
this.model.stopTimer();

Removed the timers. Fixed it.

Call this method to start timer that will calculate how much time end-user spends on the survey or on pages

https://surveyjs.io/Documentation/Library/?id=surveymodel#startTimer

Hmm, why would this fix anything at all?

@StephanMeijer Hello! Thank you for the comment https://github.com/surveyjs/surveyjs/issues/1535#issuecomment-462466472

You are using quiz and I've reproduced the bug.

We've fixed the bug. Fix will be available in the next minor update.

@tmvnk 馃帀

Glorious! Thank you so much <3

Was this page helpful?
0 / 5 - 0 ratings