File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
services/quizzes/src/components/exercise-service-views/AnswerExercise/impl-by-quiz-item-type Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ const Timeline: React.FunctionComponent<
220220 const choices = [
221221 {
222222 timelineItemId : timelineItem . itemId ,
223- chosenEventId : event . target . value ,
223+ chosenEventId : event . currentTarget . value ,
224224 } ,
225225 ]
226226 setQuizItemAnswerState ( {
@@ -229,7 +229,7 @@ const Timeline: React.FunctionComponent<
229229 timelineChoices : [
230230 {
231231 timelineItemId : timelineItem . itemId ,
232- chosenEventId : event . target . value ,
232+ chosenEventId : event . currentTarget . value ,
233233 } ,
234234 ] ,
235235 valid : validate ( choices , quizItem . timelineItems ) ,
@@ -242,7 +242,10 @@ const Timeline: React.FunctionComponent<
242242 ) || [ ]
243243 const newTimelineChoices : TimelineChoice [ ] = [
244244 ...timelineChoicesWithoutThisOne ,
245- { timelineItemId : timelineItem . itemId , chosenEventId : event . target . value } ,
245+ {
246+ timelineItemId : timelineItem . itemId ,
247+ chosenEventId : event . currentTarget . value ,
248+ } ,
246249 ]
247250
248251 setQuizItemAnswerState ( {
You can’t perform that action at this time.
0 commit comments