mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
put a little more work into quizzes
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user