Moved the 'turning off' of the keyboard inputs into the if condition that is checking if its ok to emit the forwardClicked event

This commit is contained in:
Leah Schumann 2022-12-29 10:38:54 -05:00
parent 2dba3314c1
commit 1563a90da1

View file

@ -31,6 +31,7 @@
<script>
import textLink from "@/ux-components/text-link/text-link";
import buttonMain from "@/ux-components/button-main/button-main";
import { setTimeout } from "timers";
export default {
name: "funnelFooter",
@ -99,12 +100,12 @@ export default {
this.navigationButtonClicked = false;
},
buttonClick() {
//prevent keyboard input after button click
document.onkeydown = function (e) {
return false;
};
if (!this.navigationButtonClicked) {
//prevent keyboard input after button click
document.onkeydown = function (e) {
return false;
};
this.$emit("ForwardClicked");
this.forwardClicked = true;
}