diff --git a/htdocs/js/apps/MathQuill/mqeditor.js b/htdocs/js/apps/MathQuill/mqeditor.js index 4793f2654f..eb52f4bd4a 100644 --- a/htdocs/js/apps/MathQuill/mqeditor.js +++ b/htdocs/js/apps/MathQuill/mqeditor.js @@ -161,7 +161,7 @@ document.querySelector('input[name=previewAnswers]')?.click(); // For ww3 const previewButtonId = - answerQuill.textarea.closest('[name=problemMainForm]')[0]?.id + answerQuill.textarea.closest('[name=problemMainForm]')?.id .replace('problemMainForm', 'previewAnswers'); if (previewButtonId) document.getElementById(previewButtonId)?.click(); }