Skip to content

fix(editor): show a changed extra setting immediately - #3982

Merged
Chartman123 merged 1 commit into
mainfrom
fix/extra-settings-immediate-ui
Nov 22, 2026
Merged

Chartman123 merged 1 commit into
mainfrom
fix/extra-settings-immediate-ui

Conversation

@AndyScherzinger

Copy link
Copy Markdown
Member

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() in src/composables/useQuestion.ts now 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

  1. Add a linear scale question and open its actions menu.
  2. Choose 7 as "Highest value" and right after that 5 again.
  3. The select shows 5 immediately; reload the page: the scale still goes from 1 to 5.

The new Playwright test "Saves the value of a setting chosen last in quick succession" in question-editing.spec.ts does this and fails without the fix (the reloaded scale has 7 options).

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

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
Chartman123 merged commit 60a1d34 into main Nov 22, 2026
43 checks passed
@Chartman123
Chartman123 deleted the fix/extra-settings-immediate-ui branch November 22, 2026 13:21
@Chartman123

Copy link
Copy Markdown
Collaborator

/backport to stable5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted bug Something isn't working feature: 📑 form creation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants