From 5f202e856da580004fb2f3778a51ba085a531353 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Thu, 29 Dec 2022 08:32:17 -0500 Subject: [PATCH] Added check for previous click in footer forward and back button / link --- .../funnel-footer/funnel-footer.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue index 2a6119681..4a1c63c16 100644 --- a/src/common-components/funnel-footer/funnel-footer.vue +++ b/src/common-components/funnel-footer/funnel-footer.vue @@ -47,6 +47,8 @@ export default { return { paddingHeight: 0, customButtontext: "", + forwardClicked: false, + backClicked: false, }; }, mounted() { @@ -83,16 +85,26 @@ export default { document.onkeydown = function (e) { return true; }; + this.forwardClicked = false; }, buttonClick() { //prevent keyboard input after button click document.onkeydown = function (e) { return false; }; - this.$emit("ForwardClicked"); + + if (!this.forwardClicked) { + this.$emit("ForwardClicked"); + this.forwardClicked = true; + } + }, linkClick() { - this.$emit("BackClicked"); + if (!this.backClicked) { + this.$emit("BackClicked"); + this.backClicked = true; + } + }, }, };