mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
Create a CHOICE question and the options fields were hidden behind a 'save first' message — had to save, then reopen via Edit, to actually add options. Added an inline options editor (local state, same bilingual fields/correct-checkbox as the existing edit-mode one) directly in the create form. On submit: create the question, then immediately call setOptions with the drafted options using the new question's id — one action from the user's point of view, two API calls under the hood. Edit mode is unchanged, still uses the existing QuestionOptionsEditor against the real question id. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>