From 30d3568807a8bc2516e25e9d3cc71aca18dbc179 Mon Sep 17 00:00:00 2001 From: Kevin Krummnacker Date: Wed, 27 Jan 2021 14:57:11 +0100 Subject: [PATCH] Fix infinite loop on timerFrame --- src/mixins/TimerMixin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mixins/TimerMixin.js b/src/mixins/TimerMixin.js index 9826de7..4941408 100644 --- a/src/mixins/TimerMixin.js +++ b/src/mixins/TimerMixin.js @@ -85,6 +85,7 @@ module.exports = { if (this.elapsed >= this.duration) { // Emit the `remove` event this.$emit('remove') + return } } else { // Pause the timer by keeping the elapsed time the same by updating started time