Added check for previous click in footer forward and back button / link
This commit is contained in:
parent
5515a5e56b
commit
5f202e856d
1 changed files with 14 additions and 2 deletions
|
|
@ -47,6 +47,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
paddingHeight: 0,
|
paddingHeight: 0,
|
||||||
customButtontext: "",
|
customButtontext: "",
|
||||||
|
forwardClicked: false,
|
||||||
|
backClicked: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -83,16 +85,26 @@ export default {
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
this.forwardClicked = false;
|
||||||
},
|
},
|
||||||
buttonClick() {
|
buttonClick() {
|
||||||
//prevent keyboard input after button click
|
//prevent keyboard input after button click
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
this.$emit("ForwardClicked");
|
|
||||||
|
if (!this.forwardClicked) {
|
||||||
|
this.$emit("ForwardClicked");
|
||||||
|
this.forwardClicked = true;
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
linkClick() {
|
linkClick() {
|
||||||
this.$emit("BackClicked");
|
if (!this.backClicked) {
|
||||||
|
this.$emit("BackClicked");
|
||||||
|
this.backClicked = true;
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue