InseeFr / Lunatic

Library of questionnaire components
https://inseefr.github.io/Lunatic/
MIT License
20 stars 21 forks source link

overview : compare item page to current page to know if it is reached #1054

Closed QRuhier closed 1 month ago

QRuhier commented 1 month ago

Feature Description

Currently an overview item is considered reached if its page is before (or equal to) the lastReachedPage. We want now to replace lastReachedPage by the current page, assuming that when going back an item is not considered reached anymore

Use Case

The prop "reached" is only used by Queen for navigating into previous sequence/subsequence. Since the lastReachedPage is not cleaned, we want to prevent from going back, changing data, and then navigating next bypassing new pages

Priority