Repository navigation
fix(editor): show a changed extra setting immediately - #3982
Merged
Merged
Conversation
The editor showed an extra setting only after it was saved, 400 ms after the last change. Until then a select such as "Highest value" still showed the previous value, and choosing that value again in this time did not change the select's value, so no change was made and the value chosen before it was saved. A changed extra setting is now passed to the form at once; only the save is delayed, and changes made within the delay are still saved together. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Chartman123
approved these changes
Nov 22, 2026
Collaborator
|
/backport to stable5.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the question editor, a changed extra setting (for example "Highest value" of a linear scale, a date range or a file size limit) only reached the form once it was saved, 400 ms after the last change. Until then the control still showed the previous value. Choosing that previous value again within the 400 ms did not change the select's value, so nothing was emitted and the value chosen before it was saved: picking 7 and then 5 again quickly saved 7.
Change
onExtraSettingsChange()insrc/composables/useQuestion.tsnow passes the changed extra settings to the form at once, so every control shows the new value immediately. Only the save to the server is still delayed by 400 ms, and changes made within the delay are still saved together in one request, as before.How to verify
The new Playwright test "Saves the value of a setting chosen last in quick succession" in
question-editing.spec.tsdoes this and fails without the fix (the reloaded scale has 7 options).🤖 AI (if applicable)