We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b7e9de commit 7962bceCopy full SHA for 7962bce
addition-subtraction-0-20.js
@@ -308,6 +308,15 @@ function displayProblem(problemData) {
308
currentProblemData = problemData;
309
310
problemTextElement.textContent = currentProblemData.questionText;
311
+
312
+ // Explicitly clear styles/classes from old options before removing them
313
+ const oldOptions = optionsContainer.querySelectorAll('.option');
314
+ oldOptions.forEach(option => {
315
+ option.classList.remove('correct', 'wrong');
316
+ option.style.transform = 'none'; // Remove inline transform if any
317
+ option.disabled = false; // Re-enable just in case
318
+ });
319
320
optionsContainer.innerHTML = ''; // Clear previous options
321
322
currentProblemData.options.forEach((optionValue) => {
0 commit comments