File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
bases/rsptx/interactives/runestone Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments