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:
parent
2dba3314c1
commit
1563a90da1
1 changed files with 6 additions and 5 deletions
|
|
@ -31,6 +31,7 @@
|
||||||
<script>
|
<script>
|
||||||
import textLink from "@/ux-components/text-link/text-link";
|
import textLink from "@/ux-components/text-link/text-link";
|
||||||
import buttonMain from "@/ux-components/button-main/button-main";
|
import buttonMain from "@/ux-components/button-main/button-main";
|
||||||
|
import { setTimeout } from "timers";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "funnelFooter",
|
name: "funnelFooter",
|
||||||
|
|
@ -99,12 +100,12 @@ export default {
|
||||||
this.navigationButtonClicked = false;
|
this.navigationButtonClicked = false;
|
||||||
},
|
},
|
||||||
buttonClick() {
|
buttonClick() {
|
||||||
//prevent keyboard input after button click
|
|
||||||
document.onkeydown = function (e) {
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!this.navigationButtonClicked) {
|
if (!this.navigationButtonClicked) {
|
||||||
|
//prevent keyboard input after button click
|
||||||
|
document.onkeydown = function (e) {
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
this.$emit("ForwardClicked");
|
this.$emit("ForwardClicked");
|
||||||
this.forwardClicked = true;
|
this.forwardClicked = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue