File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 3636 if ( input . classList . contains ( 'incorrect' ) ) answerQuill . classList . add ( 'incorrect' ) ;
3737 if ( input . classList . contains ( 'partially-correct' ) ) answerQuill . classList . add ( 'partially-correct' ) ;
3838
39+ // Find the feedback button for this input if there is one on the page.
40+ const feedbackBtn = document . querySelector ( `button[data-answer-label="${ answerLabel } "` ) ;
41+
3942 // Default options.
4043 const cfgOptions = {
4144 spaceBehavesLikeTab : true ,
261264 answerQuill . input . value = '' ;
262265 answerQuill . latexInput . value = '' ;
263266 }
267+
268+ // If the feedback popover is open, then update its position.
269+ if ( feedbackBtn ) bootstrap . Popover . getInstance ( feedbackBtn ) ?. update ( ) ;
264270 } ;
265271
266272 input . after ( answerQuill ) ;
Original file line number Diff line number Diff line change @@ -1211,6 +1211,7 @@ sub ENDDOCUMENT {
12111211 );
12121212 }
12131213 )-> to_string,
1214+ answer_label => $answerLabel ,
12141215 bs_toggle => ' popover' ,
12151216 bs_trigger => ' click' ,
12161217 bs_placement => ' bottom' ,
You can’t perform that action at this time.
0 commit comments