Skip to content

Commit

Permalink
Fix oppia#16058: Fraction rule input is not connected properly in the…
Browse files Browse the repository at this point in the history
… answer group input form (oppia#16072)

done
  • Loading branch information
heyimShivam authored Sep 18, 2022
1 parent 2f3485f commit 3a38e9c
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,28 @@
<object-editor [modalId]="modalId"
[objType]="'SetOfTranslatableHtmlContentIds'"
[initArgs]="{choices: ruleDescriptionChoices}"
[(ngModel)]="rule.inputs[item.varName]"
[ngModelOptions]="{standalone: true}">
[(value)]="rule.inputs[item.varName]">
</object-editor>
</span>
<span *ngIf="item.type == 'dropdown'" class="text-dark">
<object-editor [modalId]="modalId"
[objType]="'ListOfSetsOfTranslatableHtmlContentIds'"
[initArgs]="{choices: ruleDescriptionChoices}"
[(ngModel)]="rule.inputs[item.varName]"
[ngModelOptions]="{standalone: true}">
[(value)]="rule.inputs[item.varName]">
</object-editor>
</span>
<span *ngIf="item.type == 'dragAndDropHtmlStringSelect'" class="text-dark">
<object-editor [modalId]="modalId"
[objType]="'TranslatableHtmlContentId'"
[initArgs]="{choices: ruleDescriptionChoices}"
[(ngModel)]="rule.inputs[item.varName]"
[ngModelOptions]="{standalone: true}">
[(value)]="rule.inputs[item.varName]">
</object-editor>
</span>
<span *ngIf="item.type == 'dragAndDropPositiveIntSelect'" class="text-dark">
<object-editor [modalId]="modalId"
[objType]="'DragAndDropPositiveInt'"
[initArgs]="{choices: ruleDescriptionChoices}"
[(ngModel)]="rule.inputs[item.varName]"
[ngModelOptions]="{standalone: true}">
[(value)]="rule.inputs[item.varName]">
</object-editor>
</span>
<span *ngIf="item.type != 'select' &&
Expand All @@ -58,8 +54,7 @@
[objType]="item.type"
[isEditable]="isEditable"
[alwaysEditable]="true"
[(ngModel)]="rule.inputs[item.varName]"
[ngModelOptions]="{standalone: true}"
[(value)]="rule.inputs[item.varName]"
class="text-dark">
</object-editor>
</span>
Expand Down

0 comments on commit 3a38e9c

Please sign in to comment.