@gamelearn/arcade-components 2.12.9 → 2.12.11
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.
package/dist/components/image-click-wrapper-component/components/ImageClickWrapperComponent.js
CHANGED
|
@@ -261,11 +261,12 @@ var ImageClickWrapperComponent = function ImageClickWrapperComponent(props) {
|
|
|
261
261
|
});
|
|
262
262
|
|
|
263
263
|
if (timer) {
|
|
264
|
+
clearIntervalForCountDown();
|
|
264
265
|
pauseTheCounter();
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
|
-
}, [clickedZones, areas.length, specificFeedbacks, hasClickOnce, completed, info.solution.right, pauseTheCounter, timer]);
|
|
269
|
+
}, [clickedZones, areas.length, specificFeedbacks, hasClickOnce, completed, info.solution.right, pauseTheCounter, timer, clearIntervalForCountDown]);
|
|
269
270
|
(0, _react.useEffect)(function () {
|
|
270
271
|
setResolveAction(function (resolve) {
|
|
271
272
|
if (timer) {
|
|
@@ -317,6 +317,7 @@ var TextClickPuzzleComponent = function TextClickPuzzleComponent(_ref) {
|
|
|
317
317
|
text: list[currentSlide].info.orderFeedback.desc || translate('puzzles.incorrectOrder'),
|
|
318
318
|
timeout: false
|
|
319
319
|
});
|
|
320
|
+
setCurrentSlide(0);
|
|
320
321
|
} else {
|
|
321
322
|
// si has click en mala repuesta
|
|
322
323
|
handleIncorrectClick(currentTextDom, specificWrongFeedback);
|