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

feat(surveys branching): handle question shuffling #23116

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

jurajmajerik
Copy link
Contributor

Changes

Same as #23109 but for Questions shuffling.

image image

Follow-ups:

  • Branching logic currently assumes the confirmation message is always present - make sure this is handled correctly

How did you test this code?

👀

onChange={(checked) => onAppearanceChange({ ...appearance, shuffleQuestions: checked })}
onChange={(checked) => {
if (checked && hasBranchingLogic) {
onAppearanceChange({ ...appearance, shuffleQuestions: false })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LemonCheckbox behaves like an uncontrolled component when the dialog is opened, so this needs to be set to false to make sure it stays unchecked initially.

@jurajmajerik jurajmajerik requested a review from a team June 20, 2024 13:18
Copy link
Contributor

Size Change: 0 B

Total Size: 1.06 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.06 MB

compressed-size-action

@jurajmajerik jurajmajerik merged commit c8d2c71 into master Jun 21, 2024
92 checks passed
@jurajmajerik jurajmajerik deleted the branching-handle-questions-shuffling branch June 21, 2024 09:30
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

Successfully merging this pull request may close these issues.

2 participants