@gamelearn/arcade-components 2.39.2 → 2.39.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,8 +145,11 @@ var TextClickPuzzleComponent = function TextClickPuzzleComponent(_ref) {
|
|
|
145
145
|
text: ''
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
var allElementsWithClassTextClickFailed = document.querySelectorAll('.text-click__failed');
|
|
149
|
+
if (allElementsWithClassTextClickFailed.length > 0) {
|
|
150
|
+
allElementsWithClassTextClickFailed.forEach(function (el) {
|
|
151
|
+
return el.classList.remove('text-click__failed');
|
|
152
|
+
});
|
|
150
153
|
}
|
|
151
154
|
}, [emitEvent, goForward]);
|
|
152
155
|
var handleCorrectClick = (0, _react.useCallback)(function (allDataTextIds, specificFeedback) {
|