Merge pull request #905 from Safelite/feature/CSR-989

Feature/csr 989
This commit is contained in:
Leah Schumann 2022-12-30 09:14:13 -05:00 committed by GitHub
commit 6d5e3d95ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,19 +92,21 @@ export default {
removeLoader() {
this.$refs.buttonMain.removeLoader();
// Restore keyboard input after loader is removed
document.onkeydown = function (e) {
return true;
};
// Reset the button clicked flags
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;
}