put a little more work into quizzes

This commit is contained in:
2023-08-16 22:59:08 -06:00
parent 4def2fd689
commit 4fb257e000
12 changed files with 258 additions and 77 deletions

View File

@@ -82,6 +82,11 @@
UpdateQuestion(Question with { Answers = answers });
}
private void handleTextUpdate(ChangeEventArgs e)
{
var newText = e.Value?.ToString() ?? "";
UpdateQuestion(Question with { Text = newText });
}
}
<div class="my-1 p-2 border border-3 rounded">
@@ -99,6 +104,7 @@
id="question_text"
name="question_text"
@bind="text"
@oninput="handleTextUpdate"
/>
</div>
<div class="col-auto">