surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.12k stars 802 forks source link

Timer doesn't stop at 0 when a survey has validation errors #7507

Closed JaneSjs closed 9 months ago

JaneSjs commented 9 months ago

User Issue: T16024 - Clock font size, overdue minus value https://surveyjs.answerdesk.io/internal/ticket/details/T16024

If a survey has a timer and validation rules, the following happens: if a survey tries to complete but validation errors occur, the timer continues counting the time in reverse: image

Expected behavior: when the time elapses but validation errors occur, the timer stops at 0. A user has to correct validation errors to manually complete the survey.

JaneSjs commented 9 months ago

The timer is not actually stopped. image

https://plnkr.co/edit/n6LwTbfp1iolAE9Q