Skip to content

Commit 883818e

Browse files
committed
Merge branch 'main' of github.com:RunestoneInteractive/rs
2 parents e02df4f + 8a06ac1 commit 883818e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bases/rsptx/interactives/runestone/common/css/runestone-custom-sphinx-bootstrap.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ summary.ptx-footnote__number {
12561256
display: inline;
12571257
}
12581258

1259-
summary.knowl__link {
1259+
details > summary:first-of-type {
12601260
display: list-item inline;
12611261
}
12621262

bases/rsptx/interactives/runestone/shortanswer/js/shortanswer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export default class ShortAnswer extends RunestoneBase {
6161
this.fieldSet = document.createElement("fieldset");
6262
this.newForm.appendChild(this.fieldSet);
6363
this.firstLegendDiv = document.createElement("div");
64-
this.firstLegendDiv.innerHTML = this.question;
64+
// move contents to new div, keeping any event listeners
65+
while (this.origElem.firstChild) {
66+
this.firstLegendDiv.appendChild(this.origElem.firstChild);
67+
}
6568
this.firstLegendDiv.classList.add("journal-question");
6669
this.firstLegendDiv.classList.add("exercise-statement");
6770
this.fieldSet.appendChild(this.firstLegendDiv);

0 commit comments

Comments
 (0)