diff --git a/core/templates/components/question-directives/question-editor/question-editor.component.html b/core/templates/components/question-directives/question-editor/question-editor.component.html index 231a62e51494..db7adf01536e 100644 --- a/core/templates/components/question-directives/question-editor/question-editor.component.html +++ b/core/templates/components/question-directives/question-editor/question-editor.component.html @@ -9,7 +9,8 @@ (onSaveInapplicableSkillMisconceptionIds)="saveInapplicableSkillMisconceptionIds($event)" [interactionIsShown]="interactionIsShown" [stateContentPlaceholder]="getStateContentPlaceholder()" - [stateContentSaveButtonPlaceholder]="getStateContentSaveButtonPlaceholder()"> + [stateContentSaveButtonPlaceholder]="getStateContentSaveButtonPlaceholder()" + [stateContentShouldStayVisibleOnScroll]="stateContentShouldStayVisibleOnScroll"> diff --git a/core/templates/components/question-directives/question-editor/question-editor.component.ts b/core/templates/components/question-directives/question-editor/question-editor.component.ts index 7f17fae276cf..e27732bdd5df 100644 --- a/core/templates/components/question-directives/question-editor/question-editor.component.ts +++ b/core/templates/components/question-directives/question-editor/question-editor.component.ts @@ -60,6 +60,7 @@ export class QuestionEditorComponent implements OnInit, OnDestroy { @Input() question!: Question; @Input() questionId!: string; @Input() questionStateData!: State; + @Input() stateContentShouldStayVisibleOnScroll!: boolean; interactionIsShown!: boolean; oppiaBlackImgUrl!: string; stateEditorIsInitialized!: boolean; diff --git a/core/templates/components/question-directives/questions-list/questions-list.component.html b/core/templates/components/question-directives/questions-list/questions-list.component.html index e6ab31fb5cc9..930a27b8d991 100644 --- a/core/templates/components/question-directives/questions-list/questions-list.component.html +++ b/core/templates/components/question-directives/questions-list/questions-list.component.html @@ -43,7 +43,8 @@

Linked Skills

[misconceptionsBySkill]="misconceptionsBySkill" [questionStateData]="questionStateData" [question]="question" - [userCanEditQuestion]="canEditQuestion"> + [userCanEditQuestion]="canEditQuestion" + [stateContentShouldStayVisibleOnScroll]="false">
{{questionValidationService.getValidationErrorMessage(question)}} diff --git a/core/templates/components/state-editor/state-editor.component.html b/core/templates/components/state-editor/state-editor.component.html index 2622ce6b9754..9fbe2fa5f225 100644 --- a/core/templates/components/state-editor/state-editor.component.html +++ b/core/templates/components/state-editor/state-editor.component.html @@ -23,7 +23,7 @@

Responses

- +

Content

@@ -92,6 +92,12 @@

Content