diff --git a/src/common-components/funnel-footer/funnel-footer.vue b/src/common-components/funnel-footer/funnel-footer.vue index 2a6119681..f17e2940d 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() { @@ -70,6 +72,15 @@ export default { ? this.customButtontext : this.getCmsContent(this.cmsWidgetName, "ForwardButtonText"); }, + navigationButtonClicked: { + get: function () { + return this.forwardClicked || this.backClicked; + }, + set: function (newValue) { + this.forwardClicked = newValue; + this.backClicked = newValue; + }, + }, }, methods: { onResize() { @@ -80,19 +91,29 @@ export default { }, removeLoader() { this.$refs.buttonMain.removeLoader(); + document.onkeydown = function (e) { return true; }; + + this.navigationButtonClicked = false; }, buttonClick() { //prevent keyboard input after button click document.onkeydown = function (e) { return false; }; - this.$emit("ForwardClicked"); + + if (!this.navigationButtonClicked) { + this.$emit("ForwardClicked"); + this.forwardClicked = true; + } }, linkClick() { - this.$emit("BackClicked"); + if (!this.navigationButtonClicked) { + this.$emit("BackClicked"); + this.backClicked = true; + } }, }, };