Commit 97b44f8
committed
Wait for the
The `inserted.bs.popover` event still does not occur late enough for the
MathJax `typesetPromise` to be defined on the page sometimes. I am not
seeing this once the update is deferred a bit more with a `setTimeout`
call. So wait on the `MathJax.startup.promise` to be fulfilled before
updating.
One way to see the issue is to set the "Assist with the student answer
entry process" option to "MathView". Then click the "Show Correct
Answers" button in a problem with multiple answers (it can occur with
one answer, but more reliably occurs with multiple answers). The
popovers are not positioned correctly.
Another way to see the issue is to add `console.log(MathJax.typesetPromise)`
on the line before the change in this pull request (even with MathQuill
enabled). You will see that most of the time, that is undefined.MathJax.startup.promise to update the feedback popoer.1 parent 9f3f534 commit 97b44f8
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments