From 0cf1200958a54983c929cf25e7fd0f3dc01eadf8 Mon Sep 17 00:00:00 2001 From: Aurora Virmasalo Date: Tue, 10 Dec 2024 15:21:09 +0200 Subject: [PATCH] Fix new question page keyboard problems --- .../basequestion/multiple-choice-option.component.ts | 4 ++-- .../question/basequestion/multiple-choice.component.ts | 4 ++-- .../weighted-multiple-choice-option.component.ts | 8 ++++++-- .../app/question/examquestion/multichoice.component.ts | 8 ++++++-- .../examquestion/weighted-multichoice.component.ts | 10 +++++----- 5 files changed, 21 insertions(+), 13 deletions(-) diff --git a/ui/src/app/question/basequestion/multiple-choice-option.component.ts b/ui/src/app/question/basequestion/multiple-choice-option.component.ts index ac6816824..9e71fa29a 100644 --- a/ui/src/app/question/basequestion/multiple-choice-option.component.ts +++ b/ui/src/app/question/basequestion/multiple-choice-option.component.ts @@ -45,9 +45,9 @@ import { QuestionService } from 'src/app/question/question.service'; @if (allowRemoval) { -
+
+ } diff --git a/ui/src/app/question/basequestion/multiple-choice.component.ts b/ui/src/app/question/basequestion/multiple-choice.component.ts index 9f51855da..81fab1bca 100644 --- a/ui/src/app/question/basequestion/multiple-choice.component.ts +++ b/ui/src/app/question/basequestion/multiple-choice.component.ts @@ -89,10 +89,10 @@ import { WeightedMultipleChoiceOptionEditorComponent } from './weighted-multiple }
`, diff --git a/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts b/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts index b9f3d479d..8fbba80d4 100644 --- a/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts +++ b/ui/src/app/question/basequestion/weighted-multiple-choice-option.component.ts @@ -46,9 +46,13 @@ import { FixedPrecisionValidatorDirective } from 'src/app/shared/validation/fixe [disabled]="lotteryOn" /> -
+
+ `, diff --git a/ui/src/app/question/examquestion/multichoice.component.ts b/ui/src/app/question/examquestion/multichoice.component.ts index c630650f1..657857caa 100644 --- a/ui/src/app/question/examquestion/multichoice.component.ts +++ b/ui/src/app/question/examquestion/multichoice.component.ts @@ -53,9 +53,13 @@ import { ExamSectionQuestionOption } from 'src/app/question/question.model'; /> } -
+
+ }
diff --git a/ui/src/app/question/examquestion/weighted-multichoice.component.ts b/ui/src/app/question/examquestion/weighted-multichoice.component.ts index 8b97616f5..9c18ccfad 100644 --- a/ui/src/app/question/examquestion/weighted-multichoice.component.ts +++ b/ui/src/app/question/examquestion/weighted-multichoice.component.ts @@ -77,13 +77,13 @@ import { ExamSectionQuestionOption } from 'src/app/question/question.model'; [disabled]="lotteryOn()" />
-
-
+ }
@@ -98,10 +98,10 @@ import { ExamSectionQuestionOption } from 'src/app/question/question.model';
`,