Revert "Added check for previous click in footer forward and back button / link"

This commit is contained in:
Leah Schumann 2023-01-03 10:32:11 -05:00 committed by GitHub
parent bb82408f3e
commit 6fb3ee5479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,6 @@ export default {
return {
paddingHeight: 0,
customButtontext: "",
forwardClicked: false,
backClicked: false,
};
},
mounted() {
@ -72,15 +70,6 @@ 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() {
@ -91,29 +80,19 @@ 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;
};
if (!this.navigationButtonClicked) {
this.$emit("ForwardClicked");
this.forwardClicked = true;
}
this.$emit("ForwardClicked");
},
linkClick() {
if (!this.navigationButtonClicked) {
this.$emit("BackClicked");
this.backClicked = true;
}
this.$emit("BackClicked");
},
},
};