-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fix: survey jumping to 3rd question with prefilling #2421
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
Thank you for following the naming conventions for pull request titles! 🙏 |
@Dhruwang thanks for the PR :-) 💪 The use of questionId / getSetQuestionId looks good at first glance :-) @gupta-piyush19 Can you please review the PR including testing the functionality for the survey editor and showing surveys with prefilling as well as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dhruwang Thanks for the fix. 🙂
Code changes looks good, can you please check this one bug in the preview editor(in case of disabled thankyou card).
bug.mp4
apps/web/app/(app)/environments/[environmentId]/surveys/components/PreviewSurvey.tsx
Outdated
Show resolved
Hide resolved
@gupta-piyush19 Can you please check on the PR again and give your approval if you are now happy with the state of the PR? :-) |
…icks into jump-issue-fix
…jump-issue-fix
Yes @mattinannt, looks good to me. It works as expected 🚀. Thanks, @Dhruwang, for the changes. |
What does this PR do?
Eliminates
activeQuestionid
andonActiveQuestionChange
and exposes a getter functiongetSetQuestionId
which can be used on the outside to access internalsetQuestionid
And some minor refactors
Fixes https://github.com/formbricks/internal/issues/51
How should this be tested?
Test survey with prefilling
Checklist
Required
pnpm build
console.logs
git pull origin main
Appreciated